smiRenderValue and octet strings

Hi!
It seems that there is a little bug in smiRenderValue. I use SMI_RENDER_ALL as flags and I get 76.105.110.117.120 instead of "Linux" for example. Looking at the source code, it seems that when the type has no name (which is quite common), we branch in the wrong direction and we are displaying the string as an IP address.
I attach a patch for this issue to this message.

On Thu, Sep 11, 2008 at 10:57:40AM +0200, Vincent Bernat wrote:
Hi!
It seems that there is a little bug in smiRenderValue. I use SMI_RENDER_ALL as flags and I get 76.105.110.117.120 instead of "Linux" for example. Looking at the source code, it seems that when the type has no name (which is quite common), we branch in the wrong direction and we are displaying the string as an IP address.
I attach a patch for this issue to this message.
Thanks for the patch. I just committed it to the SVN.
/js
participants (2)
-
Juergen Schoenwaelder
-
Vincent Bernat