summaryrefslogtreecommitdiff
path: root/bsnmp/asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsnmp/asn1.c')
-rw-r--r--bsnmp/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsnmp/asn1.c b/bsnmp/asn1.c
index 8a206ee..be5e2a6 100644
--- a/bsnmp/asn1.c
+++ b/bsnmp/asn1.c
@@ -632,7 +632,7 @@ asn_put_objid(struct asn_buf *b, const struct asn_oid *oid)
oidlen = 2;
} else if (oid->len == 1) {
/* illegal */
- asn_error(b, "short oid");
+ asn_error(NULL, "short oid");
if (oid->subs[0] > 2)
asn_error(NULL, "oid[0] too large (%u)", oid->subs[0]);
err = ASN_ERR_RANGE;