diff options
author | des <des@FreeBSD.org> | 2008-07-23 09:15:38 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-07-23 09:15:38 +0000 |
commit | 367fd865463ff70d9176231cb7590e6e69b51b06 (patch) | |
tree | 31274ced9514914f9504202c6e49c93d509e710d /moduli.c | |
parent | e3cfeae816c1b89dbdb19357e2256b4b252fbf05 (diff) | |
download | FreeBSD-src-367fd865463ff70d9176231cb7590e6e69b51b06.zip FreeBSD-src-367fd865463ff70d9176231cb7590e6e69b51b06.tar.gz |
Vendor import of OpenSSH 4.6p1 for posterity's sake
Diffstat (limited to 'moduli.c')
-rw-r--r-- | moduli.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: moduli.c,v 1.19 2006/11/06 21:25:28 markus Exp $ */ +/* $OpenBSD: moduli.c,v 1.20 2007/02/24 03:30:11 ray Exp $ */ /* * Copyright 1994 Phil Karn <karn@qualcomm.com> * Copyright 1996-1998, 2003 William Allen Simpson <wsimpson@greendragon.com> @@ -490,11 +490,9 @@ prime_test(FILE *in, FILE *out, u_int32_t trials, u_int32_t generator_wanted) res = 0; lp = xmalloc(QLINESIZE + 1); - while (fgets(lp, QLINESIZE, in) != NULL) { - int ll = strlen(lp); - + while (fgets(lp, QLINESIZE + 1, in) != NULL) { count_in++; - if (ll < 14 || *lp == '!' || *lp == '#') { + if (strlen(lp) < 14 || *lp == '!' || *lp == '#') { debug2("%10u: comment or short line", count_in); continue; } |