From ab73e5c71e4131dd25681cf8492b7d47f751edea Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 7 Aug 2006 16:34:57 +0000 Subject: Better messages when an OID is too short. --- bsnmp/asn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsnmp') 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; -- cgit v1.2.3