Skip to content

Commit

Permalink
Don't elide webvpn cookie if it's empty
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Nov 30, 2010
1 parent 099f0cc commit 4d4b7ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http.c
Expand Up @@ -162,9 +162,9 @@ static int process_http_response(struct openconnect_info *vpninfo, int *result,
*(equals++) = 0;

print_equals = equals;
/* Don't print the webvpn cookie; we don't want people posting it
in public with debugging output */
if (!strcmp(colon, "webvpn"))
/* Don't print the webvpn cookie unless it's empty; we don't
want people posting it in public with debugging output */
if (!strcmp(colon, "webvpn") && *equals)
print_equals = "<elided>";
vpninfo->progress(vpninfo, PRG_TRACE, "%s: %s=%s%s%s\n",
buf, colon, print_equals, semicolon?";":"",
Expand Down

0 comments on commit 4d4b7ec

Please sign in to comment.