1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-14 05:57:40 +03:00

sd-netlink: fix segfault

This commit is contained in:
Yu Watanabe 2022-11-26 09:57:16 +09:00
parent bc1a8e2b6e
commit 766417bd76

View File

@ -593,7 +593,8 @@ int sd_netlink_read(
return r;
if (type == NLMSG_DONE) {
*ret = NULL;
if (ret)
*ret = NULL;
return 0;
}