From: Dave H. <hel...@us...> - 2014-10-13 16:05:33
|
Update of /cvsroot/sblim/wbemcli In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7332 Modified Files: ChangeLog CimXml.cpp NEWS Log Message: Fixed 0002626: bugfix for IPv6 LLA support Index: NEWS =================================================================== RCS file: /cvsroot/sblim/wbemcli/NEWS,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- NEWS 4 Mar 2014 06:50:08 -0000 1.49 +++ NEWS 13 Oct 2014 16:05:30 -0000 1.50 @@ -10,6 +10,7 @@ - 0002665 Add -e100 option to wbemcli - 0002629 Do not attempt connect if missing cacert - 0002721 wbemcli does not accept dot in userid:password +- 0002626 bugfix for IPv6 LLA support Changes in Version 1.6.2 ======================== Index: ChangeLog =================================================================== RCS file: /cvsroot/sblim/wbemcli/ChangeLog,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- ChangeLog 4 Mar 2014 06:50:08 -0000 1.42 +++ ChangeLog 13 Oct 2014 16:05:30 -0000 1.43 @@ -1,3 +1,9 @@ +2013-10-13 Dave Heller <hel...@us...> + + * CimXml.cpp, NEWS: + + Fixed 0002626: bugfix for IPv6 LLA support + 2014-03-04 Dave Heller <hel...@us...> * CimXml.cpp, NEWS: Index: CimXml.cpp =================================================================== RCS file: /cvsroot/sblim/wbemcli/CimXml.cpp,v retrieving revision 1.76 retrieving revision 1.77 diff -u -d -r1.76 -r1.77 --- CimXml.cpp 4 Mar 2014 06:50:08 -0000 1.76 +++ CimXml.cpp 13 Oct 2014 16:05:30 -0000 1.77 @@ -3050,9 +3050,10 @@ // TODO support percent encoding per rfc6874 if (*z == 0 || strlen(z) != strlen(strtok(z, "!$%&*=?@^~"))) throw URLException("Malformed IPv6 zone id"); - *(strchr(h,'%')) = 0; - host = string(h+1); if ((zone_id = atoi(z)) <= 0) zone_id = URL::getNetDeviceNum(string(z)); + *(strchr(h,'%')) = ']'; // replace trailing bracket + *(strchr(h,']')+1) = 0; // add null term + host = string(h); // this is now the IPv6 w/o zone identifier free(h); #endif } |