Skip to content

Commit

Permalink
oncp_connect: bail on error
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
  • Loading branch information
Nikos Mavrogiannopoulos authored and nmav committed Nov 17, 2020
1 parent d30a609 commit 251c95c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oncp.c
Expand Up @@ -786,6 +786,7 @@ int oncp_connect(struct openconnect_info *vpninfo)
vpn_progress(vpninfo, PRG_ERR,
_("Short write in oNCP negotiation\n"));
ret = -EIO;
goto out;
}

ret = check_address_sanity(vpninfo, old_addr, old_netmask, NULL, NULL);
Expand Down

0 comments on commit 251c95c

Please sign in to comment.