From: wessels <> Date: Fri, 12 May 2000 06:37:25 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1981 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc8df8351b067ee1d849902f7de21c5abe8d4eb1;p=thirdparty%2Fsquid.git DW: - Ooops, this bug accidentally got committed. Need to check hostname! --- diff --git a/lib/rfc1035.c b/lib/rfc1035.c index 87d56635d2..a0eb0205f1 100644 --- a/lib/rfc1035.c +++ b/lib/rfc1035.c @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.15 2000/05/11 22:20:57 wessels Exp $ + * $Id: rfc1035.c,v 1.16 2000/05/12 00:37:25 wessels Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -482,7 +482,7 @@ rfc1035BuildAQuery(const char *hostname, char *buf, size_t * szp) size_t sz = *szp; memset(&h, '\0', sizeof(h)); /* the first char of hostname must be alphanmeric */ - if (NULL == strchr(Alphanum, *buf)) { + if (NULL == strchr(Alphanum, *hostname)) { rfc1035SetErrno(3); return 0; }