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

(-)in_pcb.c (-11 / +21 lines)
Line 275 Link Here
275
			if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr ))
275
			if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr )) {
276
--
276
				/*
277
				 * Undo any address bind that may have
278
				 * occurred above.
279
				 */
280
				inp->inp_laddr.s_addr = INADDR_ANY;
281
Line 277 Link Here
283
			}
Line 284 Link Here
284
			if (p && (error = suser_xxx(0, p, PRISON_ROOT)))
291
			if (p && (error = suser_xxx(0, p, PRISON_ROOT))) {
285
--
292
				/*
293
				 * Undo any address bind that may have
294
				 * occurred above.
295
				 */
296
				inp->inp_laddr.s_addr = INADDR_ANY;
Line 286 Link Here
298
			}
Lines 309-312 Link Here
309
					/*
310
					 * Undo any address bind that may have
311
					 * occurred above.
312
					 */
Lines 346-347 Link Here
346
	if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr))
355
	
347
		return(EINVAL);
356
	if (prison_ip(p->p_ucred, 0, &inp->inp_laddr.s_addr)) {
348
--
357
		inp->inp_laddr.s_addr = INADDR_ANY;
358
		inp->inp_lport = 0;
359
		return (EINVAL);
360
	}

Return to bug 25732