diff options
author | Simo Sorce <simo@redhat.com> | 2015-06-06 10:18:43 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-06-06 10:19:39 -0400 |
commit | c1b6fcaea24a51a235f62a7bb03767a120b24872 (patch) | |
tree | 4a42fcdf2ab12b28ca37d2014d330901b8b20c98 /src | |
parent | 06e34da63c402cec34af5c3ada19ee0a97aa74e2 (diff) | |
download | mod_auth_gssapi-c1b6fcaea24a51a235f62a7bb03767a120b24872.tar.gz mod_auth_gssapi-c1b6fcaea24a51a235f62a7bb03767a120b24872.tar.xz mod_auth_gssapi-c1b6fcaea24a51a235f62a7bb03767a120b24872.zip |
Fix segfault if req->main is NULL
Seen in the wild.
Closes #35
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_auth_gssapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index 9c9b1b2..d351777 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -323,7 +323,7 @@ static int mag_auth(request_rec *req) } /* implicit auth for subrequests if main auth already happened */ - if (!ap_is_initial_req(req)) { + if (!ap_is_initial_req(req) && req->main != NULL) { type = ap_auth_type(req->main); if ((type != NULL) && (strcasecmp(type, "GSSAPI") == 0)) { /* warn if the subrequest location and the main request |