[hackers] [quark] don't allow named service->port translation || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 22 Jul 2017 13:27:06 +0200 (CEST)

commit 0fc6b0cccdcd3055e10aaea7469c740cbf021d84
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Jul 22 12:30:35 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sat Jul 22 13:23:10 2017 +0200

    don't allow named service->port translation
    
    this will also mess up the redirect (to a named service otherwise).

diff --git a/quark.c b/quark.c
index 6d3fcb5..fd5f36b 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -852,6 +852,7 @@ getipsock(void)
         int ret, insock = 0, yes;
 
         memset(&hints, 0, sizeof(hints));
+ hints.ai_flags = AI_NUMERICSERV;
         hints.ai_family = AF_UNSPEC;
         hints.ai_socktype = SOCK_STREAM;
 
Received on Sat Jul 22 2017 - 13:27:06 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 22 2017 - 13:37:28 CEST