Changeset 415


Ignore:
Timestamp:
10/05/12 15:25:57 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix an edge-case bug in DNSDB::getDomRecs(). Default reverse
records, when sorted by value, can't be cast as inet, since
they should in fact never be complete IP addresses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r411 r415  
    33783378  # do other fiddling with $args{sortby} while we're at it.
    33793379  $args{sortby} = "r.$args{sortby}";
    3380   $args{sortby} = 'CAST (r.val AS inet)' if $args{revrec} eq 'y' && $args{sortby} eq 'r.val';
     3380  $args{sortby} = 'CAST (r.val AS inet)'
     3381        if $args{revrec} eq 'y' && $args{defrec} eq 'n' && $args{sortby} eq 'r.val';
    33813382  $args{sortby} = 't.alphaorder' if $args{sortby} eq 'r.type';
    33823383
Note: See TracChangeset for help on using the changeset viewer.