diff options
author | Tom Yu <tlyu@mit.edu> | 2000-03-01 05:15:31 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2000-03-01 05:15:31 +0000 |
commit | 84bb15d7f03199761c4a7864e32e7a5b6b4b0b03 (patch) | |
tree | d3c8ba8c5c6d5a9718b94a85b5804102ae62a5eb /src/kdc/dispatch.c | |
parent | 8f8c45e408e3c6935ec805ecd5433361cd397ca4 (diff) | |
download | krb5-84bb15d7f03199761c4a7864e32e7a5b6b4b0b03.tar.gz krb5-84bb15d7f03199761c4a7864e32e7a5b6b4b0b03.tar.xz krb5-84bb15d7f03199761c4a7864e32e7a5b6b4b0b03.zip |
* kdc_preauth.c (verify_sam_response): Declare and set rc_lifetime
for real.
* dispatch.c: Include some more net-related headers.
(dispatch): Fix ifndef HAVE_INET_NTOP branch.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12091 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/dispatch.c')
-rw-r--r-- | src/kdc/dispatch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c index 230b7df2f0..9cfb6551e1 100644 --- a/src/kdc/dispatch.c +++ b/src/kdc/dispatch.c @@ -31,6 +31,9 @@ #include "kdc_util.h" #include "extern.h" #include "adm_proto.h" +#include <netinet/in.h> +#include <arpa/inet.h> +#include <string.h> krb5_error_code dispatch(pkt, from, portnum, response) @@ -57,7 +60,7 @@ dispatch(pkt, from, portnum, response) name = inet_ntop (from->address->addrtype, from->address->contents, buf, sizeof (buf)); #else - if (addrtype == ADDRTYPE_INET) { + if (from->address->addrtype == ADDRTYPE_INET) { struct sockaddr_in *sin = (struct sockaddr_in *)from->address->contents; strcpy (buf, inet_ntoa (sin->sin_addr)); |