(recv_conn): if getnameinfo failes, send error to client (and syslog)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12292 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1995 - 2003 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -230,7 +230,7 @@ recv_conn (int sock, kx_context *kc,
|
|||||||
remoteaddr, sizeof(remoteaddr),
|
remoteaddr, sizeof(remoteaddr),
|
||||||
NULL, 0, NI_NUMERICHOST);
|
NULL, 0, NI_NUMERICHOST);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
fatal (kc, sock, "getnameinfo failed");
|
fatal (kc, sock, "getnameinfo failed: %s", gai_strerror(ret));
|
||||||
|
|
||||||
syslog (LOG_INFO, "from %s(%s): %s -> %s",
|
syslog (LOG_INFO, "from %s(%s): %s -> %s",
|
||||||
remotehost, remoteaddr,
|
remotehost, remoteaddr,
|
||||||
|
Reference in New Issue
Block a user