krb5 commit [krb5-1.14]: Increase hostname length in ipropd_svc.c
Tom Yu
tlyu at mit.edu
Thu Jan 7 17:13:51 EST 2016
https://github.com/krb5/krb5/commit/552dadfd3bd8068010345c64f8e1880708fa03ac
commit 552dadfd3bd8068010345c64f8e1880708fa03ac
Author: Tom Yu <tlyu at mit.edu>
Date: Wed Jan 6 15:46:40 2016 -0500
Increase hostname length in ipropd_svc.c
On some systems, MAXHOSTNAMELEN is too short for valid fully qualified
domain names. Use NI_MAXHOST instead in ipropd_svc.c.
(cherry picked from commit 39802ad406c294306a407ea3d1199941d8b5d773)
ticket: 8336
version_fixed: 1.14.1
src/kadmin/server/ipropd_svc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/kadmin/server/ipropd_svc.c b/src/kadmin/server/ipropd_svc.c
index 209c19a..4e79da6 100644
--- a/src/kadmin/server/ipropd_svc.c
+++ b/src/kadmin/server/ipropd_svc.c
@@ -250,7 +250,7 @@ ipropx_resync(uint32_t vers, struct svc_req *rqstp)
{
static kdb_fullresync_result_t ret;
char *ubuf = 0;
- char clhost[MAXHOSTNAMELEN] = {0};
+ char clhost[NI_MAXHOST] = {0};
int pret, fret;
FILE *p;
kadm5_server_handle_t handle = global_server_handle;
More information about the cvs-krb5
mailing list