diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-15 21:44:59 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-18 18:54:49 +0100 |
commit | 2ff54d66a22402caf08709ec22730e20c193ecbd (patch) | |
tree | b2770c6a410df244196f5d9c86f74a5c831e3c85 /plugin.c | |
parent | Clean-up: Removing useless code - hash related functions (diff) | |
download | openvpn-2ff54d66a22402caf08709ec22730e20c193ecbd.tar.xz |
Use stricter snprintf() formatting in socks_username_password_auth() (v3)
commit fc1fa9ffc7e3356458ec3 added a new function which needs to have a
stricter string formatting. This was detected due to a compiler warning.
This patch makes sure that the length of username and password is not longer
than 255 bytes. It also adds extra checks to avoid NULL pointer issues with
strlen() on these two parameters.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'plugin.c')
0 files changed, 0 insertions, 0 deletions