diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-19 20:53:44 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-19 20:53:44 +0000 |
commit | 6be37815a19a8b34713831d131c1843d1f20ed7e (patch) | |
tree | d6b217db73573a3e05b1e269a93cc7e1dec94e87 /asn1/snmp | |
parent | 1ed5971a72e53ed182d6ac90ac0c313b6bcdc234 (diff) |
Add bytestring_to_str() which takes a wmem scope and is otherwise identical to
bytestring_to_ep_str (now deprecated). Use the new one in a few obvious places.
Also just print directly to the buffer when loading ethernet addresses for
resolution. The straight-to-buffer bytes_to_hexstr seems useful, maybe it
shouldn't be in a private header...
svn path=/trunk/; revision=54270
Diffstat (limited to 'asn1/snmp')
-rw-r--r-- | asn1/snmp/snmp.cnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf index 09a83dbe60..be6eb81562 100644 --- a/asn1/snmp/snmp.cnf +++ b/asn1/snmp/snmp.cnf @@ -201,7 +201,7 @@ gint pdu_type=-1; if (usm_p.authOK) { expert = &ei_snmp_authentication_ok; } else { - const gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' '); + const gchar* calc_auth_str = bytestring_to_str(wmem_packet_scope(), calc_auth,calc_auth_len,' '); proto_item_append_text(authen_item, " calculated = %s", calc_auth_str); expert = &ei_snmp_authentication_error; } |