https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226575

Maxim Konovalov <ma...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ma...@freebsd.org

--- Comment #1 from Maxim Konovalov <ma...@freebsd.org> ---
Hello,

I must admit that now I need to visit a doctor to check my eyes after reading
drill.c.

Here is a rather simple and admittedly naive and incomplete band-aid:

Index: drill.c
===================================================================
--- drill.c     (revision 325887)
+++ drill.c     (working copy)
@@ -695,6 +695,7 @@ main(int argc, char *argv[])
                        break;
                case DRILL_REVERSE:
                        /* ipv4 or ipv6 addr? */
+printf("name %s\n", name);
                        if (strchr(name, ':')) {
                                if (strchr(name, '.')) {
                                        error("Syntax error: both '.' and ':'
seen in address\n");
@@ -747,6 +748,9 @@ main(int argc, char *argv[])
                                free(name2);
                        } else {
                                qname = ldns_dname_new_frm_str(name);
+                               if (!qname) {
+                                       error("%s", "-x implies an ip
address");
+                               }
                                qname_tmp = ldns_dname_reverse(qname);
                                ldns_rdf_deep_free(qname);
                                qname = qname_tmp;

%%%

I see a number of other equally suspicious places but unfortunately cannot
invest more time into.

Sorry for that.

Maxim

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to