chiark / gitweb /
sd-dhcp-client: fix invalid free() in client_send_request()
authorAndreas Henriksson <andreas@fatal.se>
Fri, 13 Jun 2014 16:48:20 +0000 (18:48 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 13 Jun 2014 16:57:33 +0000 (18:57 +0200)
commit8186d9dda0d3f8a853afe6fdbd605f42151fe165
tree8d40d1d22fa0150df90d89736989b34dd5600fee
parent97578344f3bd03c8ea651d8888622e82c599eadf
sd-dhcp-client: fix invalid free() in client_send_request()

static int client_send_request(...) in
./src/libsystemd-network/sd-dhcp-client.c tries to initialize
"request" by calling client_message_init(...), which has atleast
5 error cases where it can return without that happening.
This leads to the function finishing without "request" being initialized.
src/libsystemd-network/sd-dhcp-client.c