aboutsummaryrefslogtreecommitdiff
path: root/security/krb5-17/files/patch-lib::krb5::krb::unparse.c
blob: b45233b0ab78d382e331ae944b37901ceed5206e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/krb5/krb/unparse.c.orig	Tue Jan 18 09:57:32 2005
+++ lib/krb5/krb/unparse.c	Tue Jul 12 14:04:38 2005
@@ -91,6 +91,8 @@
 				totalsize++;
 		totalsize++;	/* This is for the separator */
 	}
+	if (nelem == 0)
+		totalsize++;
 
 	/*
 	 * Allocate space for the ascii string; if space has been