summaryrefslogtreecommitdiff
path: root/third_party/heimdal/appl/test/http_client.c
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-03-09 09:00:02 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-03-31 01:48:30 +0000
commita87aae5292d1c43b987dcfa77a51b6aa5aa3e004 (patch)
treec1af6a7ddb6a196d4af09cd086815be51a709365 /third_party/heimdal/appl/test/http_client.c
parentf448a1649cf4af11f1ceba55ec62e9b2a3db24f1 (diff)
downloadsamba-a87aae5292d1c43b987dcfa77a51b6aa5aa3e004.tar.gz
third_party/heimdal: Import lorikeet-heimdal-202303200103 (commit 2ee541b5e963f7cffb1ec4acd1a8cc45426a9f28)
NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'third_party/heimdal/appl/test/http_client.c')
-rw-r--r--third_party/heimdal/appl/test/http_client.c4
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;