[Click] bug on lib/element.cc
Eddie Kohler
kohler at cs.ucla.edu
Fri Oct 21 17:14:00 EDT 2005
Great find! Thanks, Jacky. Patch checked in.
Eddie
On Oct 21, 2005, at 2:09 PM, Jacky Cheng wrote:
> Hi,
> Router crashed if Element(int, int) constructer is used.
> int
> Element::set_nports(int new_ninputs, int new_noutputs)
> {
> // exit on bad counts, or if already initialized
> if (new_ninputs < 0 || new_noutputs < 0)
> return -EINVAL;
> - if (_router->_have_connections) {
> + if (_router && _router->_have_connections) {
> if (_router->_state >= Router::ROUTER_PREINITIALIZE)
> return -EBUSY;
> _router->_have_connections = false;
> }
> --Jacky
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>
More information about the click
mailing list