Skip to content

Fix use of uninitialized values reported by valgrind (see man accept); Fix memory leak

Reinhard Resch requested to merge fix-sockdrv into develop

According to "man 2 accept" the third argument of accept should be initialized by the caller:

"The addrlen argument is a value-result argument: the caller must initialize it to contain the size (in bytes) of the structure pointed to by addr; on return it will contain the actual size of the peer address"

Merge request reports