From d1942a4fe298acc7cd2d06e39f80882f9c8ce0a4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 9 Nov 1996 03:11:11 +0000 Subject: Zwero the result counter when calling this function. svn path=/trunk/; revision=522 --- mxget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mxget.c b/mxget.c index 3f266c01..42ab26fb 100644 --- a/mxget.c +++ b/mxget.c @@ -49,6 +49,8 @@ struct mxentry *getmxrecords(const char *name) static char MXHostBuf[PACKETSZ - HFIXEDSZ]; HEADER *hp; + pmx->name = (char *)NULL; + pmx->pref = -1; n = res_search(name,C_IN,T_MX,(unsigned char*)&answer, sizeof(answer)); if (n == -1) return((struct mxentry *)NULL); -- cgit v1.2.3