From c5aba88ba430094d0e9a811b0b4a612ff70dbc2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 21 Dec 2009 12:41:20 +0000 Subject: [PATCH] * make shure the buffer is cleared * if the result is unexpected, log an error --- webcit/useredit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webcit/useredit.c b/webcit/useredit.c index e14a53a72..b1d2479fe 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -467,6 +467,7 @@ TRYAGAIN: /* If there's no vcard, create one */ if ((*VCMsg == NULL) && (already_tried_creating_one == 0)) { + FlushStrBuf(Buf); already_tried_creating_one = 1; serv_puts("ENT0 1|||4"); StrBuf_ServGetln(Buf); @@ -477,6 +478,8 @@ TRYAGAIN: serv_puts("end:vcard"); serv_puts("000"); } + else + lprintf(1, "Error while creating user vcard: %s\n", ChrPtr(Buf)); goto TRYAGAIN; } FreeStrBuf(&Buf); -- 2.30.2