- Ooops, this bug accidentally got committed. Need to check hostname!
/*
- * $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
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;
}