summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/map.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2002-08-28 17:57:52 +0000
committergshapiro <gshapiro@FreeBSD.org>2002-08-28 17:57:52 +0000
commit92d7a08e6a4f29d81a268a197c69fcd730bb4611 (patch)
treead822a13ea6339438c3454da2fdef00a6449055a /contrib/sendmail/src/map.c
parentfb383aafc75ac488266b7800dad41a7c1ece20f8 (diff)
parent39e311b2e17a53f7ed02fcbe3820ca77b65486d5 (diff)
downloadFreeBSD-src-92d7a08e6a4f29d81a268a197c69fcd730bb4611.zip
FreeBSD-src-92d7a08e6a4f29d81a268a197c69fcd730bb4611.tar.gz
This commit was generated by cvs2svn to compensate for changes in r102528,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/sendmail/src/map.c')
-rw-r--r--contrib/sendmail/src/map.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/sendmail/src/map.c b/contrib/sendmail/src/map.c
index f0301eb..feba80b 100644
--- a/contrib/sendmail/src/map.c
+++ b/contrib/sendmail/src/map.c
@@ -13,7 +13,7 @@
#include <sendmail.h>
-SM_RCSID("@(#)$Id: map.c,v 8.645.2.1 2002/06/21 20:25:23 ca Exp $")
+SM_RCSID("@(#)$Id: map.c,v 8.645.2.3 2002/08/09 22:23:13 gshapiro Exp $")
#if LDAPMAP
# include <sm/ldap.h>
@@ -3811,6 +3811,8 @@ ldapmap_lookup(map, name, av, statp)
{
p += sm_strlcpy(p, attr,
vsize - (p - vp_tmp));
+ if (p >= vp_tmp + vsize)
+ syserr("ldapmap_lookup: Internal error: buffer too small for LDAP values");
*p++ = lmap->ldap_attrsep;
}
p += sm_strlcpy(p, vals[i],
@@ -7198,6 +7200,7 @@ ns_map_t_find(mapname)
ns_map = (ns_map_list_t *) xalloc(sizeof *ns_map);
ns_map->mapname = newstr(mapname);
ns_map->map = (ns_map_t *) xalloc(sizeof *ns_map->map);
+ memset(ns_map->map, '\0', sizeof *ns_map->map);
ns_map->next = ns_maps;
ns_maps = ns_map;
}
OpenPOWER on IntegriCloud