Switch over "code", not "packet->code"
authoraland <aland>
Thu, 26 Apr 2007 13:46:30 +0000 (13:46 +0000)
committeraland <aland>
Thu, 26 Apr 2007 13:46:30 +0000 (13:46 +0000)
src/main/listen.c

index 3fda408..0972f89 100644 (file)
@@ -497,7 +497,7 @@ static int acct_socket_recv(rad_listen_t *listener,
        /*
         *      Some sanity checks, based on the packet code.
         */
-       switch(packet->code) {
+       switch(code) {
        case PW_ACCOUNTING_REQUEST:
                RAD_SNMP_CLIENT_INC(listener, client, requests);
                fun = rad_accounting;