krb5 commit: Increase hostname length in ipropd_svc.c

Tom Yu tlyu at mit.edu
Thu Jan 7 08:29:47 EST 2016


https://github.com/krb5/krb5/commit/39802ad406c294306a407ea3d1199941d8b5d773
commit 39802ad406c294306a407ea3d1199941d8b5d773
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.
    
    ticket: 8336

 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