summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-add.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-01-25 22:59:14 +0000
committerschwarze <schwarze@openbsd.org>2020-01-25 22:59:14 +0000
commitfa397007755a08f7303aa0d92251f7ab8c8c740f (patch)
treee2382b03aef2dad9f8375d5fbf7ef1d408bd452a /usr.bin/ssh/ssh-add.c
parentadd a comment describing the ranges of channel IDs that we use; (diff)
downloadwireguard-openbsd-fa397007755a08f7303aa0d92251f7ab8c8c740f.tar.xz
wireguard-openbsd-fa397007755a08f7303aa0d92251f7ab8c8c740f.zip
Minor cleanup, no functional change:
Do not abuse strstr(3) to check whether one long string starts with another long string. Instead, use strncmp(3) with the proper length. In set_basedir(), also reset *basedir in the error brances for extra safety. While here, invert some more Yoda conditions in the neighbourhood.
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
0 files changed, 0 insertions, 0 deletions