View | Details | Raw Unified | Return to bug 3499
Collapse All | Expand All

(-)a/clientloop.c (-2 / +9 lines)
Lines 846-853 process_cmdline(struct ssh *ssh) Link Here
846
		}
846
		}
847
		logit("Canceled forwarding.");
847
		logit("Canceled forwarding.");
848
	} else {
848
	} else {
849
		if (!parse_forward(&fwd, s, dynamic, remote)) {
849
		/* -R specs can be both dynamic or not, so check both. */
850
			logit("Bad forwarding specification.");
850
		if (remote) {
851
			if (!parse_forward(&fwd, s, 0, remote) &&
852
			    !parse_forward(&fwd, s, 1, remote)) {
853
				logit("Bad remote forwarding specification.");
854
				goto out;
855
			}
856
		} else if (!parse_forward(&fwd, s, dynamic, remote)) {
857
			logit("Bad local forwarding specification.");
851
			goto out;
858
			goto out;
852
		}
859
		}
853
		if (local || dynamic) {
860
		if (local || dynamic) {

Return to bug 3499