net/can/can_setsockopt.c: fix assertion, value can be NULL
This commit is contained in:
parent
70dae3bb3b
commit
5b678ab12e
|
@ -76,7 +76,9 @@ int can_setsockopt(FAR struct socket *psock, int option,
|
|||
int ret = OK;
|
||||
int count = 0;
|
||||
|
||||
DEBUGASSERT(psock != NULL && value != NULL && psock->s_conn != NULL);
|
||||
DEBUGASSERT(psock != NULL && psock->s_conn != NULL);
|
||||
DEBUGASSERT(value_len == 0 || value != NULL);
|
||||
|
||||
conn = (FAR struct can_conn_s *)psock->s_conn;
|
||||
|
||||
if (psock->s_type != SOCK_RAW)
|
||||
|
|
Loading…
Reference in New Issue