sd-netlink: fix segfault

This commit is contained in:
Yu Watanabe
2022-11-26 11:28:27 +09:00
parent bc1a8e2b6e
commit 766417bd76
+2 -1
View File
@@ -593,7 +593,8 @@ int sd_netlink_read(
return r;
if (type == NLMSG_DONE) {
*ret = NULL;
if (ret)
*ret = NULL;
return 0;
}