aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2008-11-13 17:58:14 +0000
committerGuy Harris <guy@alum.mit.edu>2008-11-13 17:58:14 +0000
commit373f142bcd72abf94964f4a2f6fd08d41a42c481 (patch)
tree2ba65c2f77a827d68bf38388a9cb41dacc6b6824 /asn1/snmp
parentdaf7a9f9f0e4bd1bb9a4e4aad4124dd734c7dd10 (diff)
downloadwireshark-373f142bcd72abf94964f4a2f6fd08d41a42c481.tar.gz
wireshark-373f142bcd72abf94964f4a2f6fd08d41a42c481.tar.bz2
wireshark-373f142bcd72abf94964f4a2f6fd08d41a42c481.zip
Fix some warnings.
svn path=/trunk/; revision=26773
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/snmp.cnf8
1 files changed, 4 insertions, 4 deletions
diff --git a/asn1/snmp/snmp.cnf b/asn1/snmp/snmp.cnf
index f8c3fb2b5b..2e370a8b89 100644
--- a/asn1/snmp/snmp.cnf
+++ b/asn1/snmp/snmp.cnf
@@ -186,22 +186,22 @@ gint pdu_type=-1;
expert_add_info_format( actx->pinfo, authen_item, PI_MALFORMED, PI_ERROR, "Error while verifying Messsage authenticity: %s", error );
} else {
int severity;
- gchar* fmt;
+ gchar* msg;
authen_item = proto_tree_add_boolean(authen_tree, hf_snmp_msgAuthentication, tvb, 0, 0, usm_p.authOK);
PROTO_ITEM_SET_GENERATED(authen_item);
if (usm_p.authOK) {
- fmt = "SNMP Authentication OK";
+ msg = "SNMP Authentication OK";
severity = PI_CHAT;
} else {
gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' ');
proto_item_append_text(authen_item, " calculated = %s", calc_auth_str);
- fmt = "SNMP Authentication Error";
+ msg = "SNMP Authentication Error";
severity = PI_WARN;
}
- expert_add_info_format( actx->pinfo, authen_item, PI_CHECKSUM, severity, fmt );
+ expert_add_info_format( actx->pinfo, authen_item, PI_CHECKSUM, severity, "%s", fmt );
}
}