Fixed: [unneeded trailing zero character on SNMP strings](https://github.com/clicon/clixon/issues/367)
This commit is contained in:
parent
4a5e0c1832
commit
954e5d56fd
4 changed files with 13 additions and 10 deletions
|
|
@ -457,7 +457,9 @@ type_yang2asn1(yang_stmt *ys,
|
|||
if (yang_extension_value(yrp, "display-hint", IETF_YANG_SMIV2_NS, NULL, &display_hint) < 0)
|
||||
goto done;
|
||||
/* RFC2578/2579 but maybe all strings with display-hint should use this, eg exist>0? */
|
||||
if (display_hint && strcmp(display_hint, "255t")==0)
|
||||
if (display_hint &&
|
||||
(strcmp(display_hint, "255a")==0 ||
|
||||
strcmp(display_hint, "255t")==0))
|
||||
at = CLIXON_ASN_FIXED_STRING;
|
||||
}
|
||||
if (asn1_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue