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

Collapse All | Expand All

(-)authfile.c (-2 / +5 lines)
Lines 725-732 key_try_load_public(Key *k, const char * Link Here
725
				;
725
				;
726
			if (*cp) {
726
			if (*cp) {
727
				if (key_read(k, &cp) == 1) {
727
				if (key_read(k, &cp) == 1) {
728
					if (commentp)
728
					cp[strcspn(cp, "\r\n")] = '\0';
729
						*commentp=xstrdup(filename);
729
					if (commentp) {
730
						*commentp = xstrdup(*cp ?
731
						    cp : filename);
732
					}
730
					fclose(f);
733
					fclose(f);
731
					return 1;
734
					return 1;
732
				}
735
				}

Return to bug 439