1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r14247: Fix Coverity bug # 136

This commit is contained in:
Volker Lendecke 2006-03-12 17:53:57 +00:00 committed by Gerald (Jerry) Carter
parent ebc21336d8
commit 1b247ff2ed

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 );