diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-09 03:11:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-09 03:11:11 +0000 |
commit | d1942a4fe298acc7cd2d06e39f80882f9c8ce0a4 (patch) | |
tree | 83290cf97ea5123cffa8738d83905e63120349ba | |
parent | 360ee555adb28150d22b4aa8c4a166238c2d674c (diff) | |
download | fetchmail-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |