X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fnotlist.c;h=de7d0465e60877300ba2cbf30a40516a6484f154;hb=d6ea66438d89c7708a10e464013491655f5361b0;hp=b74d9df07b1806667e5a7992ae675223771a0824;hpb=940c7c304d4a43c00c27529cdddc7c87db6eef87;p=nfs-utils.git diff --git a/utils/statd/notlist.c b/utils/statd/notlist.c index b74d9df..de7d046 100644 --- a/utils/statd/notlist.c +++ b/utils/statd/notlist.c @@ -17,7 +17,6 @@ #endif #include -#include "misc.h" #include "statd.h" #include "notlist.h" @@ -211,6 +210,7 @@ nlist_free(notify_list **head, notify_list *entry) free(NL_MY_NAME(entry)); if (NL_MON_NAME(entry)) free(NL_MON_NAME(entry)); + free(entry->dns_name); free(entry); } @@ -233,7 +233,8 @@ nlist_gethost(notify_list *list, char *host, int myname) notify_list *lp; for (lp = list; lp; lp = lp->next) { - if (matchhostname(host, myname? NL_MY_NAME(lp) : NL_MON_NAME(lp))) + if (statd_matchhostname(host, + myname? NL_MY_NAME(lp) : NL_MON_NAME(lp))) return lp; }