File: 07_fix_segfault_syslog_logrequests

package info (click to toggle)
ffproxy 1.6-14
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 904 kB
  • sloc: ansic: 2,311; asm: 578; sh: 425; makefile: 93
file content (16 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix a segfault when logging requests in syslog with
 log_all_requests=yes and unrestricted_connect=yes.
Bug-Debian: http://bugs.debian.org/702041
Author: Antoni Villalonga <antoni@friki.cat>
Last-Update: 2013-03-18
--- a/request.c
+++ b/request.c
@@ -91,7 +91,7 @@
 							r.host, clinfo->name, clinfo->ip);
 					else
 						info("CONNECT to host (%s:%d) from (%s) [%s]",
-							r.host, r.port, clinfo->ip);
+							r.host, r.port, clinfo->name, clinfo->ip);
 				}
 				i = do_request(cl, &r);
 				switch (i) {