1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r14247: Fix Coverity bug # 136

(This used to be commit 1b247ff2ed380f5b7d28917d74d6ef5609330a45)
This commit is contained in:
Volker Lendecke 2006-03-12 17:53:57 +00:00 committed by Gerald (Jerry) Carter
parent 0837f6b584
commit db249de135

View File

@ -525,11 +525,13 @@ static int regdb_pack_values(REGVAL_CTR *values, char *buf, int buflen)
int len = 0;
int i;
REGISTRY_VALUE *val;
int num_values = regval_ctr_numvals( values );
int num_values;
if ( !values )
return 0;
num_values = regval_ctr_numvals( values );
/* pack the number of values first */
len += tdb_pack( buf+len, buflen-len, "d", num_values );