Convert some emem to wmem. It took some manual flow analysis, but they are only

used during actual packet dissection.

svn path=/trunk/; revision=52870
This commit is contained in:
Evan Huus 2013-10-26 16:04:21 +00:00
parent df5a9be3db
commit 3342e3bc89
2 changed files with 4 additions and 4 deletions

View File

@ -1479,7 +1479,7 @@ snmp_usm_auth_md5(snmp_usm_params_t* p, guint8** calc_auth_p, guint* calc_auth_l
msg[i] = '\0';
}
calc_auth = (guint8*)ep_alloc(16);
calc_auth = (guint8*)wmem_alloc(wmem_packet_scope(), 16);
md5_hmac(msg, msg_len, key, key_len, calc_auth);
@ -1543,7 +1543,7 @@ snmp_usm_auth_sha1(snmp_usm_params_t* p _U_, guint8** calc_auth_p, guint* calc_a
msg[i] = '\0';
}
calc_auth = (guint8*)ep_alloc(20);
calc_auth = (guint8*)wmem_alloc(wmem_packet_scope(), 20);
sha1_hmac(key, key_len, msg, msg_len, calc_auth);

View File

@ -1581,7 +1581,7 @@ snmp_usm_auth_md5(snmp_usm_params_t* p, guint8** calc_auth_p, guint* calc_auth_l
msg[i] = '\0';
}
calc_auth = (guint8*)ep_alloc(16);
calc_auth = (guint8*)wmem_alloc(wmem_packet_scope(), 16);
md5_hmac(msg, msg_len, key, key_len, calc_auth);
@ -1645,7 +1645,7 @@ snmp_usm_auth_sha1(snmp_usm_params_t* p _U_, guint8** calc_auth_p, guint* calc_a
msg[i] = '\0';
}
calc_auth = (guint8*)ep_alloc(20);
calc_auth = (guint8*)wmem_alloc(wmem_packet_scope(), 20);
sha1_hmac(key, key_len, msg, msg_len, calc_auth);