diff options
author | Stef Walter <stef@memberwebs.com> | 2006-08-07 16:34:57 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-08-07 16:34:57 +0000 |
commit | ab73e5c71e4131dd25681cf8492b7d47f751edea (patch) | |
tree | f606bddf84c7388d9001b9670ebb16ef5a1e4140 /bsnmp | |
parent | af9c5fc92f0a9c5b5becfdbcb9f6d3a4b80ad723 (diff) |
Better messages when an OID is too short.
Diffstat (limited to 'bsnmp')
-rw-r--r-- | bsnmp/asn1.c | 2 |
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; |