Commit 14c36015 authored by Kyle J. McKay's avatar Kyle J. McKay Committed by Patrick Monnerat
Browse files

parseurlandfillconn(): fix improper non-numeric scope_id stripping.

parent 9081014c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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