diff options
Diffstat (limited to 'third_party/heimdal/appl/test/http_client.c')
-rw-r--r-- | third_party/heimdal/appl/test/http_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/heimdal/appl/test/http_client.c b/third_party/heimdal/appl/test/http_client.c index 24c4e6e2d06..88a8fee35e5 100644 --- a/third_party/heimdal/appl/test/http_client.c +++ b/third_party/heimdal/appl/test/http_client.c @@ -316,6 +316,7 @@ main(int argc, char **argv) argc -= optind; argv += optind; + memset(&req, 0, sizeof(req)); mech_oid = select_mech(mech); if (argc != 1 && argc != 2) @@ -346,6 +347,9 @@ main(int argc, char **argv) } num_headers = 0; + if (req.response == NULL) + errx(1, "Got no response"); + if (strstr(req.response, " 200 ") != NULL) { print_body = 1; done = 1; |