We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5b2b1 commit 87182b1Copy full SHA for 87182b1
ext/snmp/snmp.c
@@ -834,10 +834,14 @@ static int netsnmp_session_set_sec_protocol(struct snmp_session *s, char *prot T
834
*
835
* As we want this extension to compile on both versions, we use the latter
836
* symbol on purpose, as it's defined to be the same as the former.
837
+*
838
+* However, in 5.2 the type of usmAES128PrivProtocol is a pointer, not an
839
+* array, so we cannot use the OIDSIZE macro because it uses sizeof().
840
841
*/
842
|| !strcasecmp(prot, "AES")) {
843
s->securityPrivProto = usmAES128PrivProtocol;
- s->securityPrivProtoLen = OIDSIZE(usmAES128PrivProtocol);
844
+ s->securityPrivProtoLen = USM_PRIV_PROTO_AES128_LEN;
845
return (0);
846
#else
847
) {
0 commit comments