diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/sd-network.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c index 260ca470d1..ed02eccaf1 100644 --- a/src/network/sd-network.c +++ b/src/network/sd-network.c @@ -122,6 +122,8 @@ _public_ int sd_network_get_llmnr(int ifindex, char **llmnr) { return -ENODATA; else if (r < 0) return r; + else if (!s) + return -ENODATA; *llmnr = s; s = NULL; |