git-svn: trunk@1797
Nigel Horne authored on 2006/01/03 03:03:31... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Jan 2 18:02:20 GMT 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Bug fix to the patch of 28/12 for versions of curl |
|
4 |
+ that don't support curl_easy_strerror() |
|
5 |
+ |
|
1 | 6 |
Mon Jan 2 17:38:35 GMT 2006 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* libclamav/mbox.c: NEW_WORLD code (not enabled by default) now finds all |
... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
* along with this program; if not, write to the Free Software |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
*/ |
18 |
-static char const rcsid[] = "$Id: mbox.c,v 1.266 2006/01/02 17:37:57 nigelhorne Exp $"; |
|
18 |
+static char const rcsid[] = "$Id: mbox.c,v 1.267 2006/01/02 18:01:54 nigelhorne Exp $"; |
|
19 | 19 |
|
20 | 20 |
#if HAVE_CONFIG_H |
21 | 21 |
#include "clamav-config.h" |
... | ... |
@@ -3880,10 +3880,13 @@ getURL(struct arg *arg) |
3880 | 3880 |
#ifdef CURLOPT_ERRORBUFFER |
3881 | 3881 |
if(curl_easy_perform(curl) != CURLE_OK) |
3882 | 3882 |
cli_warnmsg("URL %s failed to download: %s\n", url, errorbuffer); |
3883 |
-#else |
|
3883 |
+#elif (LIBCURL_VERSION_NUM >= 0x070C00) |
|
3884 | 3884 |
if((res = curl_easy_perform(curl)) != CURLE_OK) |
3885 | 3885 |
cli_warnmsg("URL %s failed to download: %s\n", url, |
3886 | 3886 |
curl_easy_strerror(res)); |
3887 |
+#else |
|
3888 |
+ if((res = curl_easy_perform(curl)) != CURLE_OK) |
|
3889 |
+ cli_warnmsg("URL %s failed to download\n", url); |
|
3887 | 3890 |
#endif |
3888 | 3891 |
|
3889 | 3892 |
fclose(fp); |