lacp: Avoid valgrind warning in lacp_configure() if custom timing not used.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Dec 2011 21:09:23 +0000 (13:09 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 9 Dec 2011 21:09:23 +0000 (13:09 -0800)
commit2204c61a4f85b14685f6dca6bbfac8adac6e2810
treeb5e997ac2c46a3b134a95c34d034a9b41f862a7e
parent3845a3fd623fe6fc96d5b10b2006b940cf81b9bb
lacp: Avoid valgrind warning in lacp_configure() if custom timing not used.

The caller currently doesn't fill in s->custom_time unless it actually
wants a custom LACP time, but lacp_configure() still does a calculation
with it, provoking a warning from valgrind.  This eliminates the warning.

The calculated value was not actually used in this case, so this commit
does not fix a real bug.
lib/lacp.c