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:
parent
0837f6b584
commit
db249de135
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user