Skip to content

Commit

Permalink
Fix error reporting when failed to write CSD script file
Browse files Browse the repository at this point in the history
Spotted by Coverity.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 26, 2012
1 parent a2454d4 commit 7a386a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.c
Expand Up @@ -440,7 +440,7 @@ static int run_csd_script(struct openconnect_info *vpninfo, char *buf, int bufle
if (ret) {
vpn_progress(vpninfo, PRG_ERR,
_("Failed to write temporary CSD script file: %s\n"),
strerror(ret));
strerror(-ret));
return ret;
}
fchmod(fd, 0755);
Expand Down

0 comments on commit 7a386a1

Please sign in to comment.