]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Increase hostname length in ipropd_svc.c
authorTom Yu <tlyu@mit.edu>
Wed, 6 Jan 2016 20:46:40 +0000 (15:46 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 8 Jan 2016 22:10:32 +0000 (17:10 -0500)
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

index bc760fa5f83f4de6a569ff16d0523957d4546be6..06ecb6877d70fe104e0484a710c5a696599bfd28 100644 (file)
@@ -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;