From: Alan T. DeKok Date: Fri, 29 Jun 2012 21:55:10 +0000 (-0400) Subject: proxy_listener may be NULL X-Git-Tag: release_3_0_0_beta0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4db0b587f0ccefe583a3083c0be80167549039a;p=thirdparty%2Ffreeradius-server.git proxy_listener may be NULL --- diff --git a/src/main/process.c b/src/main/process.c index 8687246b161..6d0a317b378 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -2827,12 +2827,12 @@ STATE_MACHINE_DECL(proxy_wait_for_reply) FR_STATS_TYPE_INC(home->stats.total_timeouts); if (home->type == HOME_TYPE_AUTH) { - FR_STATS_TYPE_INC(request->proxy_listener->stats.total_timeouts); + if (request->proxy_listener) FR_STATS_TYPE_INC(request->proxy_listener->stats.total_timeouts); FR_STATS_TYPE_INC(proxy_auth_stats.total_timeouts); } #ifdef WITH_ACCT - else if (home->rtype == HOME_TYPE_ACCT) { - FR_STATS_TYPE_INC(request->proxy_listener->stats.total_timeouts); + else if (home->type == HOME_TYPE_ACCT) { + if (request->proxy_listener) FR_STATS_TYPE_INC(request->proxy_listener->stats.total_timeouts); FR_STATS_TYPE_INC(proxy_acct_stats.total_timeouts); } #endif