mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Coverity - check for malloc failure (however unlikely...)
This commit is contained in:
parent
a256afcdc3
commit
d38f2d8096
1 changed files with 3 additions and 0 deletions
|
|
@ -434,6 +434,9 @@ process_ldif_rec( char *rbuf, int linenum )
|
|||
|
||||
lines = ldif_countlines( rbuf );
|
||||
btype = ber_memcalloc( 1, (lines+1)*2*sizeof(struct berval)+lines );
|
||||
if ( !btype )
|
||||
return LDAP_NO_MEMORY;
|
||||
|
||||
vals = btype+lines+1;
|
||||
freeval = (char *)(vals+lines+1);
|
||||
i = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue