Ethereal-dev: Re: [Ethereal-dev] Bug: Radius - Attribute 2 (Password) is not shown -on Windows
Yaniv Kaul wrote:
>For some reason, Attribute #2 is not shown in Windows, but is shown in
>Solaris.
>Attached screen shot.
>I assume the problem is in rddecryptpass() where there are several
>#ifdef _WIN32. I'm not sure why it fails to display it, though.
>It seems there's a difference in the behavior when there's no
>shared-secret given in Windows and in Solaris. (If there is a shared
>secret, the line is shown).
If there is no shared secret then rddecryptpass will call rdconvertbufftostr and there is no checks in
that routine if the character value is in the range that is working with GTK+ on Windows ( c >= 0x20 && c <= 0x7f) .
isalnum((int)pd[i]) will probably return true for some characters that are greater than 0x7f and that will result in that the
line will blank in the Windows version.
Maybe there should be some similar ifdef:s in rdconvertbufftostr.