From 18b8580d04c01a9272cc7f865278591b5d264886 Mon Sep 17 00:00:00 2001 From: nalin Date: Jan 10 2001 20:32:39 +0000 Subject: make sure obuf is big enough --- diff --git a/authinfo.c b/authinfo.c index 09eea20..b5b4262 100644 --- a/authinfo.c +++ b/authinfo.c @@ -824,7 +824,8 @@ gboolean authInfoWriteLDAP2(struct authInfoType *info, const char *filename, l = strlen(host) + 2 + strlen(base) + 2; l += info->ldapBaseDN ? strlen(info->ldapBaseDN) : 0; l += info->ldapServer ? strlen(info->ldapServer) : 0; - obuf = g_malloc0(st.st_size + 1 + l); + l += strlen("ssl start_tls\n"); + obuf = g_malloc0((st.st_size + 1 + l) * 2); p = ibuf; while(*p != '\0') {