Skip to content
Snippets Groups Projects
Commit 9fd4a858 authored by Howard Chu's avatar Howard Chu
Browse files

coverity - a->a_nvals may be NULL

parent c428a163
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment