]> git.ozlabs.org Git - ppp.git/commit
CLang detected possible invalid memory access (-Wsizeof-pointer-memaccess)
authorEivind Næss <eivnaes@yahoo.com>
Thu, 23 Sep 2021 14:44:06 +0000 (07:44 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Thu, 23 Sep 2021 14:44:06 +0000 (07:44 -0700)
commit6fbd9acc05bde03c1d6acfc8256d2bb411c0cc00
tree63869855dcc8297353d68b36110ba4a651fdc9bf
parent5c62101f3ba79a98b2651cfa4704a0ef1ceecdfb
CLang detected possible invalid memory access (-Wsizeof-pointer-memaccess)

rc_find_server() resets the secret by setting *secret = 0 instead of what
was likely intended: memset the entire array. In case of error, moved the
memset operation outside of the rc_find_server() function. It's only used
in one place anyway.

Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
pppd/plugins/radius/config.c
pppd/plugins/radius/sendserver.c