diff options
author | Kyle J. McKay <mackyle@gmail.com> | 2014-12-17 15:52:07 +0100 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2014-12-17 15:52:07 +0100 |
commit | 14c3601583bfe171a33971115220378d5076e3b8 (patch) | |
tree | f4014b1ed728270da20ba3d0bfb9191ca54644d5 /lib | |
parent | 9081014c2c467077723d5ae1d0081003b3eb3504 (diff) |
parseurlandfillconn(): fix improper non-numeric scope_id stripping.
Fixes SF bug 1149: http://sourceforge.net/p/curl/bugs/1449/
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4116,10 +4116,10 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data, } } if(scopeidx > 0) { + char *p = percent + identifier_offset + strlen(ifname); + /* Remove zone identifier from hostname */ - memmove(percent, - percent + identifier_offset + strlen(ifname), - identifier_offset + strlen(ifname)); + memmove(percent, p, strlen(p) + 1); conn->scope_id = scopeidx; } else |