From 50d8adbcac551e6615c1e4c33dbf55e6a055cd1d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 16 May 2024 04:05:24 +0000 Subject: [PATCH] fix dlen --- citadel/utils/ctdlload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/utils/ctdlload.c b/citadel/utils/ctdlload.c index cc25ef28a..e69aa0873 100644 --- a/citadel/utils/ctdlload.c +++ b/citadel/utils/ctdlload.c @@ -118,6 +118,7 @@ int import_user(char *line, struct cdbkeyval *kv) { char userkey[USERNAME_SIZE]; char *token; struct ctdluser *u; + int dlen = 0; u = malloc(sizeof(struct ctdluser)); if (!u) { @@ -163,7 +164,6 @@ int import_user(char *line, struct cdbkeyval *kv) { u->msgnum_pic = atol(token); break; case 12: - int dlen; dlen = CtdlDecodeBase64(token, token, strlen(token)); // Decode in place if (dlen >= sizeof(u->emailaddrs)) { dlen = sizeof(u->emailaddrs) - 1; -- 2.30.2