X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-linux.c;h=483108815f2ead9ddd9473f3c2b4a4885fd3df2e;hp=d09fd635a8485ae955ae8e028b2ff4028c290aab;hb=c9ec9e179e5a93a51c1b6e492a4f372662b5d033;hpb=3af40a378ec6c76ddac5ec026d2be1be128dc16c diff --git a/system-linux.c b/system-linux.c index d09fd63..4831088 100644 --- a/system-linux.c +++ b/system-linux.c @@ -36,8 +36,10 @@ int system_init(void) static int system_rtnl_call(struct nl_msg *msg) { - return -(nl_send_auto_complete(sock_rtnl, msg) + int s = -(nl_send_auto_complete(sock_rtnl, msg) || nl_wait_for_ack(sock_rtnl)); + nlmsg_free(msg); + return s; } int system_bridge_addbr(struct device *bridge)