diff options
author | Marcel Telka <marcel.telka@nexenta.com> | 2014-07-08 22:17:44 +0200 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2014-07-09 13:07:49 -0400 |
commit | 9c62f9ec8ed42265fb80cb8d6873fabfae3941ab (patch) | |
tree | 53d470d1717f847b73582ca3069ca89ad1e6c918 /usr/src | |
parent | 7d46dc6ca63a6f3f0d51aa655bfcf10cf2405a9e (diff) | |
download | illumos-gate-9c62f9ec8ed42265fb80cb8d6873fabfae3941ab.tar.gz |
4985 reverse resolve does not work in /usr/lib/krb5/klookup
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/krb5/kadmin/kdcmgr/klookup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/cmd/krb5/kadmin/kdcmgr/klookup.c b/usr/src/cmd/krb5/kadmin/kdcmgr/klookup.c index aeed39a2d4..bee86b197a 100644 --- a/usr/src/cmd/krb5/kadmin/kdcmgr/klookup.c +++ b/usr/src/cmd/krb5/kadmin/kdcmgr/klookup.c @@ -23,8 +23,9 @@ * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - -#pragma ident "%Z%%M% %I% %E% SMI" +/* + * Copyright 2014 Nexenta Systems, Inc. All rights reserved. + */ #include <sys/types.h> #include <netinet/in.h> @@ -82,7 +83,7 @@ main(int argc, char **argv) break; case 'P': rr_type = T_PTR; - (void) sscanf(name, "%d.%d.%d.%d", + (void) sscanf(name, "%hhd.%hhd.%hhd.%hhd", &a, &b, &c, &d); (void) sprintf(name, "%d.%d.%d.%d.in-addr.arpa", d, c, b, a); |