View | Details | Raw Unified | Return to bug 1157 | Differences between
and this patch

Collapse All | Expand All

(-)ssh-keygen.c (-1 / +1 lines)
Lines 328-334 do_convert_from_ssh2(struct passwd *pw) Link Here
328
	}
328
	}
329
	encoded[0] = '\0';
329
	encoded[0] = '\0';
330
	while (fgets(line, sizeof(line), fp)) {
330
	while (fgets(line, sizeof(line), fp)) {
331
		if (!(p = strchr(line, '\n'))) {
331
		if (!(p = strchr(line, '\n')) || !(p = strchr(line, '\r'))) {
332
			fprintf(stderr, "input line too long.\n");
332
			fprintf(stderr, "input line too long.\n");
333
			exit(1);
333
			exit(1);
334
		}
334
		}

Return to bug 1157