From: Douglas Bagnall Date: Thu, 9 May 2019 22:26:54 +0000 (+1200) Subject: s4/winbind/idmap: check the right variable (CID 1272950) X-Git-Tag: samba-4.13.0rc1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213a8d551dc416a137fec5f392925bbf9ebec55a;p=thirdparty%2Fsamba.git s4/winbind/idmap: check the right variable (CID 1272950) Signed-off-by: Douglas Bagnall Reviewed-by: Andreas Schneider Reviewed-by: Ralph Boehme --- diff --git a/source4/winbind/idmap.c b/source4/winbind/idmap.c index b6fd8aa45e1..c4039be473a 100644 --- a/source4/winbind/idmap.c +++ b/source4/winbind/idmap.c @@ -645,7 +645,7 @@ static NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx, } vals = talloc_array(tmp_ctx, struct ldb_val, 2); - if (els == NULL) { + if (vals == NULL) { status = NT_STATUS_NO_MEMORY; goto failed; }