net: mqtt: check mqtt_abort() function parameters before locking
Function parameters can be checked without MQTT instance lock being
held. Additionally if NULL parameter would be passed (which this check
tries to handle), then function would return without releasing lock.
Signed-off-by:
Marcin Niestroj <m.niestroj@emb.dev>
Loading
Please sign in to comment