X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fextnotify%2Ffunambol65.c;h=38499fafc3deddb3776e3b95582c214d7a05ed97;hb=75b5384185328d4e7be3c29d5f9527a39aede0dd;hp=6049b179d2fbd8877286a476551a4a209eb094da;hpb=c67fb1c41bfc35b3449e4c52cf903fdba3cdb776;p=citadel.git diff --git a/citadel/modules/extnotify/funambol65.c b/citadel/modules/extnotify/funambol65.c index 6049b179d..38499fafc 100644 --- a/citadel/modules/extnotify/funambol65.c +++ b/citadel/modules/extnotify/funambol65.c @@ -67,6 +67,7 @@ int notify_http_server(char *remoteurl, char *SOAPMessage = NULL; char *contenttype = NULL; StrBuf *ReplyBuf; + StrBuf *Buf; CURL *chnd; AsyncIO *IO; @@ -145,7 +146,9 @@ int notify_http_server(char *remoteurl, IO->HttpReq.headers = curl_slist_append(IO->HttpReq.headers, "Pragma: no-cache"); } - ParseURL(&IO->ConnectMe, NewStrBufPlain (remoteurl, -1), 80); + Buf = NewStrBufPlain (remoteurl, -1); + ParseURL(&IO->ConnectMe, Buf, 80); + FreeStrBuf(&Buf); /* TODO: this is uncool... */ CurlPrepareURL(IO->ConnectMe); if (! evcurl_init(IO, // Ctx,