• R
    params: don't hand NULL values to param.set callbacks. · 2e9fb995
    Rusty Russell 提交于
    An audit by Dongdong Deng revealed that most driver-author-written param
    calls don't handle val == NULL (which happens when parameters are specified
    with no =, eg "foo" instead of "foo=1").
    
    The only real case to use this is boolean, so handle it specially for that
    case and remove a source of bugs for everyone else.
    Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
    Cc: Dongdong Deng <dongdong.deng@windriver.com>
    Cc: Américo Wang <xiyou.wangcong@gmail.com>
    2e9fb995
params.c 18.1 KB