mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Don't leave a pointer variable uninitialized
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
e6f8568541
commit
6f68812d22
@ -519,10 +519,10 @@ void reply_negprot(struct smb_request *req)
|
||||
|
||||
while (smbreq_bufrem(req, p) > 0) {
|
||||
|
||||
char **tmp;
|
||||
|
||||
tmp = talloc_realloc(talloc_tos(), cliprotos, char *,
|
||||
num_cliprotos+1);
|
||||
char **tmp = talloc_realloc(talloc_tos(),
|
||||
cliprotos,
|
||||
char *,
|
||||
num_cliprotos + 1);
|
||||
if (tmp == NULL) {
|
||||
DEBUG(0, ("talloc failed\n"));
|
||||
TALLOC_FREE(cliprotos);
|
||||
|
Loading…
Reference in New Issue
Block a user