0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-26 11:45:30 +00:00
Commit Graph

14 Commits

Author SHA1 Message Date
Przemyslaw Pawelczyk
39b2639bdb Fix logic error bugs.
scan-build result for socks5.c:256:

    Function call argument is an uninitialized value

nextstate can be undefined reply's addrtype field has unexpected value.
Fix by adding else case before to report error, drop client and return
from socks5_read_reply() function.

scan-build result for main.c:144, parser.c:193:

    Result of operation is garbage or undefined

If there is early error in main() in second FOREACH block, then
terminators array is not itialized before access in shutdown path.
Fix by moving memset() to precede this block.

gettoken() does not initialize copytype enum value, so can have a
garbage value at some point. Add else case to the chain of **iter tests
to report error and return from the function.
2011-01-27 23:05:45 +01:00
Bin Jin
9d876181b3 merge commits from upstream 2010-12-03 22:02:40 +08:00
Leonid Evdokimov
c0d4cede5a Initial UDP over Socks5 support. 2010-12-03 02:18:14 +02:00
Bin Jin
0ed9eeb920 add pidfile option 2010-11-24 14:44:02 +08:00
Leonid Evdokimov
77a490422b Added GPLv3 copyright notice to every source file. 2008-12-13 15:40:52 +06:00
Leonid Evdokimov
60ccc646e0 Write daemon shutdown event to log. 2008-08-18 23:08:45 +07:00
Leonid Evdokimov
4d886f5109 Graceful exit on SIGINT and SIGTERM. 2008-08-18 18:54:17 +07:00
Leonid Evdokimov
40fda9b6b7 Fixed minor memory leaks during fatal failure. 2008-08-18 17:34:18 +07:00
Leonid Evdokimov
66d9d1cf83 Whitespace fixes. 2008-07-13 21:36:51 +07:00
Leonid Evdokimov
c4c35981fd Added command-line opts: "-t" to test config, and "-c /config/path". 2008-02-10 01:02:15 +06:00
Leonid Evdokimov
36dc692ab3 s/return 0/return EXIT_SUCCESS/, s/return 1/return EXIT_FAILURE/. 2008-02-10 00:59:00 +06:00
Leonid Evdokimov
8456d20883 Added logging priorities.
LOG_DEBUG - connection progress
LOG_INFO - all connections
LOG_NOTICE - network problems & startup banner
LOG_WARNING - unexpected behaviour, lack of client-related resources
LOG_ERR - startup errors & lack of memory
2008-02-10 00:57:22 +06:00
Leonid Evdokimov
5dda936cf9 Better logging. 2008-02-02 04:18:04 +06:00
darkk
20d7930ecf Initial revision.
git-svn-id: file:///home/darkk/svnroot/redsocks@1 f324f89c-ff31-0410-8eac-c7e7ec545cec
2007-06-03 12:30:38 +00:00