* [gentoo-commits] gentoo-x86 commit in net-proxy/squidclamav/files: squidclamav-6.1-crash.patch
@ 2010-11-22 15:46 Diego Petteno (flameeyes)
0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2010-11-22 15:46 UTC (permalink / raw
To: gentoo-commits
flameeyes 10/11/22 15:46:03
Added: squidclamav-6.1-crash.patch
Log:
Version bump (closes bug #313089), this time using the c-icap module. Need a keyword request for x86.
(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
Revision Changes Path
1.1 net-proxy/squidclamav/files/squidclamav-6.1-crash.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squidclamav/files/squidclamav-6.1-crash.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-proxy/squidclamav/files/squidclamav-6.1-crash.patch?rev=1.1&content-type=text/plain
Index: squidclamav-6.1-crash.patch
===================================================================
Index: squidclamav-6.1/src/squidclamav.c
===================================================================
--- squidclamav-6.1.orig/src/squidclamav.c
+++ squidclamav-6.1/src/squidclamav.c
@@ -427,8 +427,12 @@ int squidclamav_check_preview_handler(ch
} else {
data->user = NULL;
}
- data->clientip = ci_buffer_alloc(strlen(clientip)+1);
- strcpy(data->clientip, clientip);
+ if (clientip != NULL) {
+ data->clientip = ci_buffer_alloc(strlen(clientip)+1);
+ strcpy(data->clientip, clientip);
+ } else {
+ data->clientip = NULL;
+ }
data->body = ci_simple_file_new(MAX_OBJECT_SIZE);
if (SEND_PERCENT_BYTES >= 0 && START_SEND_AFTER == 0) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-22 15:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22 15:46 [gentoo-commits] gentoo-x86 commit in net-proxy/squidclamav/files: squidclamav-6.1-crash.patch Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox