summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-03-11 21:46:36 +0100
committerKay Sievers <kay@vrfy.org>2014-03-11 22:11:39 +0100
commit4ef0809c22a7d15bae3865d44596ff6e3cdaf1cb (patch)
tree7779ac861775f13adfd7514c8ac02b3b20c91296
parent223763f5800fba637bd3f9a8fbb9549dd47a07e9 (diff)
build-sys: add libsystemd-label to network/dhcp users
-rw-r--r--Makefile.am2
-rw-r--r--src/libsystemd-network/test-dhcp-client.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index bc7844f862..182eca69df 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2453,6 +2453,7 @@ libsystemd_network_la_SOURCES = \
src/libsystemd-network/ipv4ll-internal.h
libsystemd_network_la_LIBADD = \
+ libsystemd-label.la \
libsystemd-internal.la \
libsystemd-shared.la
@@ -2474,6 +2475,7 @@ test_dhcp_client_SOURCES = \
test_dhcp_client_LDADD = \
libsystemd-network.la \
+ libsystemd-label.la \
libsystemd-internal.la \
libsystemd-shared.la
diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c
index 8061e5fa83..966c5bfe27 100644
--- a/src/libsystemd-network/test-dhcp-client.c
+++ b/src/libsystemd-network/test-dhcp-client.c
@@ -150,7 +150,7 @@ int dhcp_network_send_raw_socket(int s, const union sockaddr_union *link,
const void *packet, size_t len)
{
size_t size;
- _cleanup_free_ DHCPPacket *discover;
+ _cleanup_free_ DHCPPacket *discover = NULL;
uint16_t ip_check, udp_check;
assert_se(s >= 0);