ncsi: set a default callback if none is provided

If applyCmd is called once with a callback, and once without, the second
invocation will use the previous' function, which may no longer have
access to valid data.

Instead, unconditionally call nl_socket_modify_cb, but with
NL_CB_DEFAULT if no function was provided.

Change-Id: I16bc81888f381bf002379d4021e4e8aea28db15c
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
1 file changed