krb5 commit [krb5-1.13]: Increase hostname length in ipropd_svc.c
Tom Yu
tlyu at mit.edu
Fri Jan 8 17:16:20 EST 2016
https://github.com/krb5/krb5/commit/9effc4f2208ce8f01398e80c76420acdb7b254f9
commit 9effc4f2208ce8f01398e80c76420acdb7b254f9
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.13.4
tags: -pullup
status: resolved
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 bc760fa..06ecb68 100644
--- a/src/kadmin/server/ipropd_svc.c
+++ b/src/kadmin/server/ipropd_svc.c
@@ -247,7 +247,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