wifi: fix entering an endless loop

This commit is contained in:
Jiří Klimeš 2012-03-07 15:31:19 +01:00
parent 79757f10f3
commit 84403ab84a

View file

@ -127,7 +127,7 @@ _nl80211_send_and_recv (struct nl_sock *nl_sock,
nl_cb_set (cb, NL_CB_VALID, NL_CB_CUSTOM, valid_handler, valid_data);
while (err > 0)
nl_recvmsgs (nl_sock, cb);
err = nl_recvmsgs (nl_sock, cb);
out:
nl_cb_put (cb);