BUG/MAJOR: spoa/python: Fixing return None
authorGilchrist Dadaglo <dadaglo@amazon.com>
Tue, 8 Dec 2020 14:37:07 +0000 (14:37 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 08:30:47 +0000 (09:30 +0100)
commitbd9abd2ca8246ef37225485298af9f59831e3af3
tree8e42e691d1f477417fb49d628543df61a36ff331
parent00b831edd661923bae6d71d093e8de05e0422996
BUG/MAJOR: spoa/python: Fixing return None

As per https://docs.python.org/3/c-api/none.html, None requires to be
incremented before being returned to prevent deallocating none

This patch must be backported as far as 2.0.

(cherry picked from commit d5c428e761796317fdfa9c7f9bf3f6280e218a98)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
contrib/spoa_server/ps_python.c