Re: [hackers] [quark] Send absolute path when redirecting || Laslo Hunhold

From: Laslo Hunhold <dev_AT_frign.de>
Date: Sat, 8 Jul 2017 20:53:32 +0200

On Fri, 7 Jul 2017 13:45:42 +0200
Hiltjo Posthuma <hiltjo_AT_codemadness.org> wrote:

Hey Hiltjo,

> > + ipv6host = inet_pton(AF_INET6, r->field[REQ_HOST]
>
> ipv6host return value needs to be checked for -1 (system error) also
> below.

the standard[0] says:

"The inet_pton() function shall return [...] -1 with errno set to
[EAFNOSUPPORT] if the af argument is unknown."

From my understanding, this cannot happen here, as we explicitly use
AF_INET6, no matter the case. Am I missing something? :)

With best regards

Laslo Hunhold

[0]:http://pubs.opengroup.org/onlinepubs/9699919799/functions/inet_ntop.html

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Sat Jul 08 2017 - 20:53:32 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 08 2017 - 21:00:47 CEST