1
0
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:
Volker Lendecke 2024-06-24 16:52:51 +02:00 committed by Ralph Boehme
parent e6f8568541
commit 6f68812d22

View File

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