]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/net/snmp/lib/v2_0/src/scapi.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / net / snmp / lib / v2_0 / src / scapi.c
index 082d27dcef6cef870ab79cdd5d10c9b4159b11c7..82f282d1b5daf51da773750230abd6ccbe64df57 100644 (file)
@@ -521,6 +521,10 @@ sc_check_keyed_hash(       oid     *authtype,      size_t authtypelen,
        }
 
 
+        if (maclen != USM_MD5_AND_SHA_AUTH_LEN) {
+            QUITFUN(SNMPERR_GENERR, sc_check_keyed_hash_quit);
+        }
+
        /* 
         * Generate a full hash of the message, then compare
         * the result with the given MAC which may shorter than