1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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,9 +519,9 @@ void reply_negprot(struct smb_request *req)
while (smbreq_bufrem(req, p) > 0) { while (smbreq_bufrem(req, p) > 0) {
char **tmp; char **tmp = talloc_realloc(talloc_tos(),
cliprotos,
tmp = talloc_realloc(talloc_tos(), cliprotos, char *, char *,
num_cliprotos + 1); num_cliprotos + 1);
if (tmp == NULL) { if (tmp == NULL) {
DEBUG(0, ("talloc failed\n")); DEBUG(0, ("talloc failed\n"));