... | ... |
@@ -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 |
Tue May 10 21:25:37 CEST 2011 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* sigtool: add support for building unsigned dbs (--unsigned) |
... | ... |
@@ -697,7 +697,8 @@ static int Rfc2822DateTime(char *buf, time_t mtime) |
697 | 697 |
gmt = gmtime(&mtime); |
698 | 698 |
if (!gmt) { |
699 | 699 |
logg("gmtime: %s\n", strerror(errno)); |
700 |
- return ""; |
|
700 |
+ strcpy(buf, "ERROR"); |
|
701 |
+ return -1; |
|
701 | 702 |
} |
702 | 703 |
return strftime(buf, 36, "%a, %d %b %Y %X GMT", gmt); |
703 | 704 |
} |