]> granicus.if.org Git - python/commit
bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698)
authorVictor Stinner <vstinner@python.org>
Thu, 10 Oct 2019 19:30:20 +0000 (21:30 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Oct 2019 19:30:20 +0000 (21:30 +0200)
commitd565fb9828ee9c494bb7a80057a08e4738273e30
tree93fda6393b2dd321afa6f928abd3c5b6a13c12fc
parent1dbe5373851acb85ba91f0be7b83c69563acd68d
bpo-38282: Rewrite getsockaddrarg() helper function (GH-16698)

Rewrite getsockaddrarg() helper function of socketmodule.c (_socket
module) to prevent a false alarm when compiling codde using GCC with
_FORTIFY_SOURCE=2. Pass a pointer of the sock_addr_t union, rather
than passing a pointer to a sockaddr structure.

Add "struct sockaddr_tipc tipc;" to the sock_addr_t union.
Modules/socketmodule.c
Modules/socketmodule.h