Re: [ovs-dev] [dscp 1/4] socket-util: Close socket on failed dscp modification.

2012-04-17 Thread Ben Pfaff
On Tue, Apr 17, 2012 at 01:23:26PM -0700, Ethan Jackson wrote: > > I agree that this fixes a problem, but the exit path in this function > > is hard to understand. How about this instead: > > Good idea, I took your diff and tweaked it a bit to come up with the > following. Looks good, thanks. _

Re: [ovs-dev] [dscp 1/4] socket-util: Close socket on failed dscp modification.

2012-04-17 Thread Ethan Jackson
> I agree that this fixes a problem, but the exit path in this function > is hard to understand. How about this instead: Good idea, I took your diff and tweaked it a bit to come up with the following. --- lib/socket-util.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-)

Re: [ovs-dev] [dscp 1/4] socket-util: Close socket on failed dscp modification.

2012-04-17 Thread Ben Pfaff
On Mon, Apr 16, 2012 at 02:17:49PM -0700, Ethan Jackson wrote: > If socket-util failed to modify the dscp bits of an active > connection, it would fail to close the file descriptor potentially > causing a leak. Found by inspection. > > Signed-off-by: Ethan Jackson I agree that this fixes a probl

[ovs-dev] [dscp 1/4] socket-util: Close socket on failed dscp modification.

2012-04-16 Thread Ethan Jackson
If socket-util failed to modify the dscp bits of an active connection, it would fail to close the file descriptor potentially causing a leak. Found by inspection. Signed-off-by: Ethan Jackson --- lib/socket-util.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket-