summaryrefslogtreecommitdiff
path: root/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'asn1')
-rw-r--r--asn1/snmp/packet-snmp-template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index 128fe52f03..990c391f20 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -790,8 +790,10 @@ set_label:
oid_info->name,
oid_subid2string(subids,oid_matched));
}
+ } else if (oid_string) {
+ repr = ep_strdup(oid_string);
} else {
- repr = ep_strdup_printf("%s", oid_string);
+ repr = ep_strdup("[Bad OID]");
}
valstr = strstr(label,": ");