From: Ted Lemon Date: Tue, 17 Mar 1998 06:09:59 +0000 (+0000) Subject: Store query in query buffer in query structure, not in the query structure itself. X-Git-Tag: carrel-2~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89698b984b1f573a725efa7d5cad95ea44518ba6;p=thirdparty%2Fdhcp.git Store query in query buffer in query structure, not in the query structure itself. --- diff --git a/common/dns.c b/common/dns.c index f7b678ca8..391e3fc74 100644 --- a/common/dns.c +++ b/common/dns.c @@ -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;