[uClibc]inet_pton for AF_INET6 broken (macro side effect)

Ronald Wahl rwa at peppercon.com
Tue Jul 9 13:43:06 UTC 2002


Hallo,

here is my daily bug report. ;-) Today: inet_pton / tolower

inet_pton is broken for AF_INET6 addresses. The reason is the following:

This piece of code from inet_pton breaks since tolower is implemented as
macro and its argument is evaluated more than once:

        ...
        while ((ch = tolower (*src++)) != '\0') {
        ...

Please fix.

thx,
ron

-- 
\\      Dipl.-Inf. Ronald Wahl   |   Peppercon AG                  //
 \\\         rwa at peppercon.com  |||  http://www.peppercon.com/   /// 
  \OO  -----------------------  OOO  -------------------------  OO/ 
   OO  GnuPG/PGP key available  OOO  Keep Systems running       OO



More information about the uClibc mailing list