aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-09 03:11:11 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-09 03:11:11 +0000
commitd1942a4fe298acc7cd2d06e39f80882f9c8ce0a4 (patch)
tree83290cf97ea5123cffa8738d83905e63120349ba
parent360ee555adb28150d22b4aa8c4a166238c2d674c (diff)
downloadfetchmail-d1942a4fe298acc7cd2d06e39f80882f9c8ce0a4.tar.gz
fetchmail-d1942a4fe298acc7cd2d06e39f80882f9c8ce0a4.tar.bz2
fetchmail-d1942a4fe298acc7cd2d06e39f80882f9c8ce0a4.zip
Zwero the result counter when calling this function.
svn path=/trunk/; revision=522
-rw-r--r--mxget.c2
1 files changed, 2 insertions, 0 deletions
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);