Check for talloc_memdup failure for uniqueid.data.
Signed-off-by: Arvid Requate <requate@univention.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
(cherry picked from commit
d633fcb5666085fef290adbe05161a2f36329abf)
int ret;
uniqueid.data = talloc_memdup(ctx, guidblob->data, guidblob->length);
+ if (uniqueid.data == NULL) {
+ return WERR_NOMEM;
+ }
/* uniqueid is a bit string in which each byte represent 1 bit (1 or 0)
* so as 1 byte is 8 bits we need to provision 8 times more space as in the
* blob