rdisc: fix regression in send_rs() (cannot create router solicitation)

Fixes: 21efcfe6b5
This commit is contained in:
Thomas Haller 2015-12-17 21:26:54 +01:00
parent 5aba5685f2
commit 793e985918

View file

@ -57,7 +57,7 @@ send_rs (NMRDisc *rdisc, GError **error)
int errsv;
errsv = ndp_msg_new (&msg, NDP_MSG_RS);
if (!errsv) {
if (errsv) {
errsv = errsv > 0 ? errsv : -errsv;
g_set_error_literal (error, NM_UTILS_ERROR, NM_UTILS_ERROR_UNKNOWN,
"cannot create router solicitation");