mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
coverity - a->a_nvals may be NULL
This commit is contained in:
parent
c428a16332
commit
9fd4a8582a
@ -737,7 +737,7 @@ ordered_value_add(
|
||||
}
|
||||
if ( anum ) {
|
||||
AC_MEMCPY( new, a->a_vals, anum * sizeof(struct berval));
|
||||
if ( nnew )
|
||||
if ( nnew && a->a_nvals )
|
||||
AC_MEMCPY( nnew, a->a_nvals, anum * sizeof(struct berval));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user