commit | 486e15682769403e565ee20393e5713e037de598 | [log] [tgz] |
---|---|---|
author | june li <junelizh@foxmail.com> | Thu Nov 16 09:50:33 2017 +0800 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Fri Nov 17 11:16:04 2017 +0200 |
tree | b4e42359e67e76f9c4bd5d533383a4e770d80e33 | |
parent | b05ba6b531ba310dc5f3190c846177f52f805b66 [diff] |
net: dhcpv4: Unref net_pkt if message sending fails If we cannot send a DHCP message, then unref the net_pkt in order to avoid a buffer leak. Earlier we tried to unref NULL net_pkt which is not correct. Signed-off-by: june li <junelizh@foxmail.com>