diff options
Diffstat (limited to 'mxget.c')
-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); |