]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/test-dhcp-option.c
libsystemd-network: dhcp-test - assert that malloc0 succeeds
authorTom Gundersen <teg@jklm.no>
Wed, 17 Sep 2014 17:07:56 +0000 (19:07 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 17 Sep 2014 17:13:35 +0000 (19:13 +0200)
commit6f42877282a7237f3aa840403047b7cc18d7faa6
tree45c60895c9aee7e9507f5b89f48eee40a00c7cc2
parentf414a269b378d526b8b26c5b52743360b43965ce
libsystemd-network: dhcp-test - assert that malloc0 succeeds

Otherwise we would get a nullptr dereference later on.

Found by coverity. Fixes CID #1237655.
src/libsystemd-network/test-dhcp-option.c