cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Changed logic in verifyhost()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 May 2016 20:22:35 +0200 (CEST)

On Mon, 23 May 2016, Erland Costyson wrote:

> The problem occurs at line 1070 or 1069 depending on version
>
> if(check->type == target)
>
> In 7.47.1 if this wasn't true "matched" was left as -1 but in 7.48 "matched"
> will now be false. This results in different behaviors after the for loop
> checking of "matched" and "altnames" variables.
>
> So is this a bug or did it fix a bug?

I'm not following. If that condition equals false, then we haven't found a
match yet so it remains set to FALSE. Isn't that good?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-23