network: Add missing freeaddrinfo on error path. Add a missing freeaddrinfo on an error path to fix a memory leak in the network code. Changelog: network: Fix memory leak. Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
network: fix data race when accessing sending_sockets This can happen with more than 1 WriteThreads
Fix formatting in src/network.c
Fix typo in src/network.c
Tree wide: Move utilities and libraries to src/utils/. This is a first step that does not yet include *all* "utils_*.c" files, but we're getting there.
Treewide: do NUL-termination correctly This is purely cosmetic but still, it sets a good example
cleanup: Use compound literals for SO_REUSEADDR setsockopt
Updated change from debug to error As suggest by @rpv-tomsk
revert back to DEBUG will change this later, it's not as simple as it looks.
chenged debug to error message
Fixed all comments by @rubenk
Fixed leak and hint Added suggested fixes
upddated correct file Sorry, committed the patch by mistake. now fixed.
Fixed additional comments Added "network plugin" prefix to Errors return -1; added to sfree
Fixed all comments
Add Bind Address option This change allows to Bind Address to an IP address instead of the binding to the Interface Name in the server section. Example: <Server "239.192.74.66" "25826"> SecurityLevel Encrypt Username "user" Password "secret" BindAddress "10.9.25.59" ResolveInterval 14400 </Server> Credit to: Ofir Hermesh
Don't initialize static numeric variables to 0
Don't initialize static pointers to NULL This is the default
Use true and false for assignments to bool
No need to initialize static bools to false