forked from darkk/redsocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters