Malloc enough memory, from Brian Scott.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23726 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -223,7 +223,7 @@ LDAP_addmod_len(LDAPMod *** modlist, int modop, const char *attribute, | |||||||
|  |  | ||||||
| 	(*modlist)[cMods]->mod_bvalues = bv; | 	(*modlist)[cMods]->mod_bvalues = bv; | ||||||
|  |  | ||||||
| 	bv[i] = ber_memalloc(sizeof(*bv));; | 	bv[i] = ber_memalloc(sizeof(**bv));; | ||||||
| 	if (bv[i] == NULL) | 	if (bv[i] == NULL) | ||||||
| 	    return ENOMEM; | 	    return ENOMEM; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand