summaryrefslogtreecommitdiffstats
path: root/src/kdc/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdc/dispatch.c')
-rw-r--r--src/kdc/dispatch.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c
index db5e72314a..8962290100 100644
--- a/src/kdc/dispatch.c
+++ b/src/kdc/dispatch.c
@@ -57,17 +57,8 @@ dispatch(pkt, from, response)
const char *name = 0;
char buf[46];
-#ifdef HAVE_INET_NTOP
- name = inet_ntop (from->address->addrtype, from->address->contents,
- buf, sizeof (buf));
-#else
- if (from->address->addrtype == ADDRTYPE_INET) {
- struct sockaddr_in *mysin
- = (struct sockaddr_in *)from->address->contents;
- strcpy (buf, inet_ntoa (mysin->sin_addr));
- name = buf;
- }
-#endif
+ name = inet_ntop (ADDRTYPE2FAMILY (from->address->addrtype),
+ from->address->contents, buf, sizeof (buf));
if (name == 0)
name = "[unknown address type]";
krb5_klog_syslog(LOG_INFO,