Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[vpnc] Use positive error codes for connect_cb. JB#52235
Use positive error codes in case the vc_connect_done() is called that
eventually calls vpn_provider.c:connect_cb(). connect_cb() expects
positive error codes.
  • Loading branch information
LaakkonenJussi committed Dec 17, 2020
1 parent 97ab053 commit af6a135
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connman/vpn/plugins/vpnc.c
Expand Up @@ -755,8 +755,9 @@ static void request_input_credentials_reply(DBusMessage *reply, void *user_data)
goto err;
}

err = run_connect(data);
if (err != -EINPROGRESS)
/* vpn_provider.c:connect_cb() expects positive errors */
err = -run_connect(data);
if (err != EINPROGRESS)
goto err;

return;
Expand Down

0 comments on commit af6a135

Please sign in to comment.