summaryrefslogtreecommitdiff
path: root/lib/addns
diff options
context:
space:
mode:
authorDmitry Antipov <dantipov@cloudlinux.com>2023-03-31 08:06:44 +0300
committerAndrew Bartlett <abartlet@samba.org>2023-04-03 03:56:35 +0000
commit8720a25d57819ea51c304c9f76f84c6aa18fb2ae (patch)
treefedef244a57de1555daedb7d2424a8f1d80c98bc /lib/addns
parent9b6f49d4b946ae436ee4d5f20613508b368f14b0 (diff)
downloadsamba-8720a25d57819ea51c304c9f76f84c6aa18fb2ae.tar.gz
s4:libnet: cleanup py_net_time()
Fix size of buffer passed to and always check the value returned from strftime(), raise PyErr_NoMemory() and return NULL if zero, or use it with PyUnicode_FromStringAndSize() (thus avoiding extra internal call to strlen()) otherwise. Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/addns')
0 files changed, 0 insertions, 0 deletions