File: smi-display-string.patch

package info (click to toggle)
libsmi 0.4.8%2Bdfsg2-16
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 13,972 kB
  • sloc: ansic: 49,659; java: 13,722; sh: 9,311; yacc: 8,705; lex: 1,448; makefile: 347; perl: 117
file content (12 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
Fix for #499098. Correctly handle DisplayString for octet string.

--- a/lib/smi.c.orig	2008-09-11 10:56:29.000000000 +0200
+++ a/lib/smi.c	2008-09-11 10:56:33.000000000 +0200
@@ -2134,6 +2134,7 @@
 	break;
     case SMI_BASETYPE_OCTETSTRING:
 	if (!(flags & SMI_RENDER_FORMAT) ||
+            (!smiTypePtr->format && !smiTypePtr->name) ||
 	    (!smiTypePtr->format &&
 	     (smiTypePtr->name && strcmp( smiTypePtr->name, "IpAddress")) ) ) {
 	    for (i = 0; i < smiValuePtr->len; i++) {