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

Collapse All | Expand All

(-)readconf.c (-2 / +4 lines)
Lines 251-262 clear_forwardings(Options *options) Link Here
251
	int i;
251
	int i;
252
252
253
	for (i = 0; i < options->num_local_forwards; i++) {
253
	for (i = 0; i < options->num_local_forwards; i++) {
254
		xfree(options->local_forwards[i].listen_host);
254
		if (options->local_forwards[i].listen_host != NULL)
255
			xfree(options->local_forwards[i].listen_host);
255
		xfree(options->local_forwards[i].connect_host);
256
		xfree(options->local_forwards[i].connect_host);
256
	}
257
	}
257
	options->num_local_forwards = 0;
258
	options->num_local_forwards = 0;
258
	for (i = 0; i < options->num_remote_forwards; i++) {
259
	for (i = 0; i < options->num_remote_forwards; i++) {
259
		xfree(options->remote_forwards[i].listen_host);
260
		if (options->remote_forwards[i].listen_host != NULL)
261
			xfree(options->remote_forwards[i].listen_host);
260
		xfree(options->remote_forwards[i].connect_host);
262
		xfree(options->remote_forwards[i].connect_host);
261
	}
263
	}
262
	options->num_remote_forwards = 0;
264
	options->num_remote_forwards = 0;

Return to bug 996