Re: switchd(8): fix memory leak and loop

2016-09-23 Thread Reyk Floeter
On Thu, Sep 22, 2016 at 09:46:50PM +0200, Rafael Zalamena wrote: > This diff fixes a memory leak in ofp_read() that happens in every message > and a infinite loop that happens when the remote switch closes the > connection. > > ok? > I'm planning to replace this part of the code (network I/O).

switchd(8): fix memory leak and loop

2016-09-23 Thread Rafael Zalamena
This diff fixes a memory leak in ofp_read() that happens in every message and a infinite loop that happens when the remote switch closes the connection. ok? Index: ofp.c === RCS file: /home/obsdcvs/src/usr.sbin/switchd/ofp.c,v