cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [bagder/curl] 219a0f: remote_port: allow connect to port 0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 6 Mar 2014 01:10:50 +0100 (CET)

On Wed, 5 Mar 2014, Frank Gevaerts wrote:

> I don't know if there are ways to abuse this, but on my (64 bit) system,
> "curl http://www.google.com:-18446744073709551536/" behaves as if it were
> port 80.

Ah yes, due to the crappy error code checking, thanks!

I pushed a follow-up now that checks the number more carefully.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-06