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:
parent
cbf743d329
commit
d4f7d9e08c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user