1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

libnmb: Fix CID 1428474 Incorrect expression (COPY_PASTE_ERROR)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jan 25 01:53:53 CET 2018 on sn-devel-144
This commit is contained in:
Volker Lendecke 2018-01-24 12:57:43 +01:00
parent cbf743d329
commit d4f7d9e08c

View File

@ -840,7 +840,7 @@ static struct packet_struct *copy_packet_talloc(
ndst->additional = talloc_memdup(
pkt, nsrc->additional,
sizeof(struct res_rec) * nsrc->header.arcount);
if (ndst->nsrecs == NULL) {
if (ndst->additional == NULL) {
goto fail;
}
}