]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - cmdgen.c
Fix enum-conflation in cmdgen.c.
authorSimon Tatham <anakin@pobox.com>
Tue, 28 Apr 2015 18:46:08 +0000 (19:46 +0100)
committerSimon Tatham <anakin@pobox.com>
Tue, 28 Apr 2015 18:46:08 +0000 (19:46 +0100)
commit78b8bde7aff42a958f48d541ffcecf06bbde3eb1
treeda6876d80e4c7f364ed6cae23d6e15e97c7f3a3d
parent38d1db194ddd2b7499b2fcb5bc76f69aef8d9da9
Fix enum-conflation in cmdgen.c.

I'd somehow managed to declare an enum in cmdgen.c with key types
OPENSSH and SSHCOM, and use it interchangeably with the one in ssh.h
with SSH_KEYTYPE_OPENSSH and SSH_KEYTYPE_SSHCOM.

It so happened that the relevant two enum values matched up! So this
hasn't caused a bug yet, but it's an accident waiting to happen. Fix
it before it does.
cmdgen.c