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

index 209c19a9e9dbf3d9a856101e1bfa7ed09aee8522..4e79da634913aa3105ba60d655dd453df4412914 100644 (file)
@@ -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;