Skip to content

Commit

Permalink
process_http_response: removed default error code
Browse files Browse the repository at this point in the history
It was not used by any of the code paths.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
  • Loading branch information
Nikos Mavrogiannopoulos authored and nmav committed Nov 17, 2020
1 parent 251c95c commit 512a9ce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions http.c
Expand Up @@ -478,8 +478,6 @@ int process_http_response(struct openconnect_info *vpninfo, int connect,
strerror(-ret));
goto err;
}
/* Default error case */
ret = -EINVAL;

/* Empty line ends headers */
if (!hdrbuf->pos)
Expand Down

0 comments on commit 512a9ce

Please sign in to comment.