... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu May 12 13:01:56 CEST 2011 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * freshclam/manager.c: fix return code of Rfc2822DateTime() (bb#2809) |
|
4 |
+ |
|
1 | 5 |
Sat May 7 18:05:23 EEST 2011 (edwin) |
2 | 6 |
------------------------------------- |
3 | 7 |
* libclamav/pdf.c: better detection for encrypted PDFs (bb #2448) |
... | ... |
@@ -760,7 +760,8 @@ static int Rfc2822DateTime(char *buf, time_t mtime) |
760 | 760 |
gmt = gmtime(&mtime); |
761 | 761 |
if (!gmt) { |
762 | 762 |
logg("gmtime: %s\n", strerror(errno)); |
763 |
- return ""; |
|
763 |
+ strcpy(buf, "ERROR"); |
|
764 |
+ return -1; |
|
764 | 765 |
} |
765 | 766 |
return strftime(buf, 36, "%a, %d %b %Y %X GMT", gmt); |
766 | 767 |
} |