Menu

#1449 curl improperly removes non-numeric scope identifiers from IPv6 addresses

closed-fixed
None
5
2014-12-17
2014-11-10
Kyle
No

Given "https://[fe80::1%en1]:8888/" curl incorrectly turns that into "https://[fe80::1]:88]:8888/" after removing the scope identifier and then tries to connect to port 88.

The bug also affects '%25' non-numeric scope names. Numeric scope names are handled by a different branch of the code and work properly.

Patch attached here. Could make it a GitHub pull request if preferred.

1 Attachments

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2014-12-09
    • status: open --> open-confirmed
     
  • Daniel Stenberg

    Daniel Stenberg - 2014-12-09

    I've been able to repeat it.

     
  • Steve Holme

    Steve Holme - 2014-12-17
    • status: open-confirmed --> closed-fixed