]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Store query in query buffer in query structure, not in the query structure itself.
authorTed Lemon <source@isc.org>
Tue, 17 Mar 1998 06:09:59 +0000 (06:09 +0000)
committerTed Lemon <source@isc.org>
Tue, 17 Mar 1998 06:09:59 +0000 (06:09 +0000)
common/dns.c

index f7b678ca8290b92c8d5911a58e62afa1c85253ec..391e3fc74ffde54c6ff482edc3c55c458cc2e380 100644 (file)
@@ -48,7 +48,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dns.c,v 1.8 1998/03/16 06:11:30 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dns.c,v 1.9 1998/03/17 06:09:59 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -389,7 +389,7 @@ struct dns_query *ns_query (question, formatted_query, len, wakeup)
                destroy_dns_query (query);
                return (struct dns_query *)-1;
        }
-       memcpy (query, buf, query -> len);
+       memcpy (query -> query, buf, query -> len);
 
        /* Flag the query as having been sent. */
        query -> sent = 1;