]> granicus.if.org Git - python/commit
Add sockaddr_alg to sock_addr_t (#234)
authorChristian Heimes <christian@python.org>
Wed, 22 Feb 2017 11:12:00 +0000 (12:12 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 22 Feb 2017 11:12:00 +0000 (12:12 +0100)
commitd37c068e695f8ec72b5c1b5a5a5ece2337fda768
tree6ee6d4e58277a96445e53b1ac02caa91e6a7ed4a
parent03f68b60e17b57f6f13729ff73245dbb37b30a4c
Add sockaddr_alg to sock_addr_t (#234)

sock_addr_t is used to define the minimum size of any socket address on
the stack. Let's make sure that an AF_ALG address always fits. Coverity
complains because in theory, AF_ALG might be larger than any of the other
structs. In practice it already fits.

Closes Coverity CID 139894813989491398950

Signed-off-by: Christian Heimes <christian@python.org>
Modules/socketmodule.c
Modules/socketmodule.h