diff --git a/appl/test/gssapi_server.c b/appl/test/gssapi_server.c index baf13ecff..74ceb3bee 100644 --- a/appl/test/gssapi_server.c +++ b/appl/test/gssapi_server.c @@ -192,6 +192,9 @@ proto (int sock, const char *service) gss_OID mech_oid; char *mech, *p; + memset(&remote, 0, sizeof(remote)); + local = remote; + addrlen = sizeof(local); if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 || addrlen != sizeof(local)) diff --git a/appl/test/http_client.c b/appl/test/http_client.c index 24c4e6e2d..88a8fee35 100644 --- a/appl/test/http_client.c +++ b/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;