summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1999-09-30 18:37:46 +0000
committerNiels Provos <provos@cvs.openbsd.org>1999-09-30 18:37:46 +0000
commit7a1c1c6d2b3fe52f61318401afce615c546aaf6c (patch)
treeaf6997fbd7b92bbfcdd83343fa225194715e413c /usr.bin/ssh
parenta422401d7ab3868d3edbc9bf1cd8e4f4ff0a822a (diff)
less brain damage, get rid of 'no '
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/cipher.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/ssh/cipher.c b/usr.bin/ssh/cipher.c
index a9e2edbc525..817d9474ed1 100644
--- a/usr.bin/ssh/cipher.c
+++ b/usr.bin/ssh/cipher.c
@@ -12,7 +12,7 @@ Created: Wed Apr 19 17:41:39 1995 ylo
*/
#include "includes.h"
-RCSID("$Id: cipher.c,v 1.8 1999/09/30 17:08:52 deraadt Exp $");
+RCSID("$Id: cipher.c,v 1.9 1999/09/30 18:37:45 provos Exp $");
#include "ssh.h"
#include "cipher.h"
@@ -123,12 +123,12 @@ detect_cbc_attack(const unsigned char *src,
int cipher.h. */
static char *cipher_names[] =
{
- "no none",
- "no idea",
- "no des",
+ NULL, /* no none */
+ NULL, /* no idea */
+ NULL, /* no des */
"3des",
- "no tss",
- "no rc4",
+ NULL, /* no tss */
+ NULL, /* no rc4 */
"blowfish"
};
@@ -162,7 +162,7 @@ cipher_number(const char *name)
{
int i;
for (i = 0; i < sizeof(cipher_names) / sizeof(cipher_names[0]); i++)
- if (strcmp(cipher_names[i], name) == 0)
+ if (cipher_names[i] != NULL && strcmp(cipher_names[i], name) == 0)
return i;
return -1;
}