summaryrefslogtreecommitdiff
path: root/contrib/sendmail/src/map.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-08-21 01:31:44 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-08-21 01:31:44 +0000
commitc86d59657f992c17a947200225b50f07e1776cd1 (patch)
tree2cfd003f88c7ffe91602b6a6c0b69bee7b4d62db /contrib/sendmail/src/map.c
parent13058a916175518dfbac6ce66b9b8e22ecf43155 (diff)
Notes
Diffstat (limited to 'contrib/sendmail/src/map.c')
-rw-r--r--contrib/sendmail/src/map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/sendmail/src/map.c b/contrib/sendmail/src/map.c
index 04b040ffa72b..78f8a02a08a4 100644
--- a/contrib/sendmail/src/map.c
+++ b/contrib/sendmail/src/map.c
@@ -12,7 +12,7 @@
*/
#ifndef lint
-static char id[] = "@(#)$Id: map.c,v 8.414.4.54 2001/06/01 08:23:24 gshapiro Exp $";
+static char id[] = "@(#)$Id: map.c,v 8.414.4.55 2001/08/15 22:08:58 gshapiro Exp $";
#endif /* ! lint */
#include <sendmail.h>
@@ -5359,7 +5359,8 @@ hes_map_lookup(map, name, av, statp)
*statp = EX_UNAVAILABLE;
break;
}
- hesiod_free_list(HesiodContext, hp);
+ if (hp != NULL)
+ hesiod_free_list(HesiodContext, hp);
return NULL;
}
# else /* HESIOD_INIT */