@@ -536,6 +536,8 @@ static authz_status Auth_memCookie_public_authz_checker(request_rec *r, const ch
536536
537537 apr_table_t * pAuthSession = NULL ;
538538
539+ authz_status nReturn = AUTHZ_GRANTED ;
540+
539541 ap_log_rerror (APLOG_MARK ,APLOG_DEBUG |APLOG_NOERRNO , 0 ,r ,LOGTAG_PREFIX "Auth_memCookie_public_authz_checker in" );
540542 if (!szMyUser ) {
541543
@@ -552,14 +554,14 @@ static authz_status Auth_memCookie_public_authz_checker(request_rec *r, const ch
552554 unless (szCookieValue = extract_cookie (r , conf -> szAuth_memCookie_CookieName ))
553555 {
554556 ap_log_rerror (APLOG_MARK , APLOG_INFO |APLOG_NOERRNO , 0 , r , LOGTAG_PREFIX "cookie not found, continue !" );
555- return AUTHZ_NEUTRAL ;
557+ return nReturn ;
556558 }
557559 ap_log_rerror (APLOG_MARK ,APLOG_DEBUG |APLOG_NOERRNO , 0 ,r ,LOGTAG_PREFIX "got cookie; value is %s" , szCookieValue );
558560
559561 /* get session name "szCookieValue" from memcached */
560562 if ((pAuthSession = Auth_memCookie_get_session (r , conf , szCookieValue ))== NULL ) {
561563 ap_log_rerror (APLOG_MARK , APLOG_WARNING |APLOG_NOERRNO , 0 , r , LOGTAG_PREFIX "AuthSession %s not found: %s" , szCookieValue , r -> filename );
562- return AUTHZ_NEUTRAL ;
564+ return nReturn ;
563565 }
564566
565567 /* send http header of the session value to the backend */
@@ -578,7 +580,7 @@ static authz_status Auth_memCookie_public_authz_checker(request_rec *r, const ch
578580 apr_table_setn (r -> subprocess_env ,"AUTHMEMCOOKIE_AUTH" ,"no" );
579581
580582 }
581- return AUTHZ_NEUTRAL ;
583+ return nReturn ;
582584}
583585/**************************************************
584586 *
0 commit comments