Fix for coverity (don't segfault if rlm_realm is called in the recv-coa section and...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 17 Feb 2013 02:58:22 +0000 (21:58 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 17 Feb 2013 02:58:22 +0000 (21:58 -0500)
src/modules/rlm_realm/rlm_realm.c

index d8a0d7f..331c37b 100644 (file)
@@ -471,7 +471,8 @@ static rlm_rcode_t realm_coa(UNUSED void *instance, REQUEST *request)
        }
 
        vp = pairfind(request->packet->vps, PW_OPERATOR_NAME, 0, TAG_ANY);
-
+       if (!vp) return RLM_MODULE_NOOP;
+       
        /*
         *      Catch the case of broken dictionaries.
         */