]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix typo in validate_manual_hostkey().
authorSimon Tatham <anakin@pobox.com>
Sat, 22 Nov 2014 10:12:47 +0000 (10:12 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 22 Nov 2014 15:25:37 +0000 (15:25 +0000)
commit2ef23bb8128503feefa36ca90a85c74e4dd62a9b
treea6666b76fa6be5a28cebac8633a2ad2e7c29149b
parent063c438fec892a5d03e0853baa6aa0cf963e7a50
Fix typo in validate_manual_hostkey().

'p += strcspn' returns p always non-NULL and sometimes pointing at \0,
as opposed to 'p = strchr' which returns p sometimes non-NULL and
never pointing at \0. Test the pointer after the call accordingly.
Thanks, Coverity.
misc.c