diff options
author | 2020-01-25 22:59:14 +0000 | |
---|---|---|
committer | 2020-01-25 22:59:14 +0000 | |
commit | fa397007755a08f7303aa0d92251f7ab8c8c740f (patch) | |
tree | e2382b03aef2dad9f8375d5fbf7ef1d408bd452a /usr.bin/ssh/ssh-keygen.c | |
parent | add a comment describing the ranges of channel IDs that we use; (diff) | |
download | wireguard-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-keygen.c')
0 files changed, 0 insertions, 0 deletions