mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
coverity - a->a_nvals may be NULL
This commit is contained in:
parent
c428a16332
commit
9fd4a8582a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue