smart_protocol.c
25.4 KB
-
smart: don't dereference a NULL pkt pointer · 6ae6491e
By clarifying what detect_caps returns on empty/missing packet, we can be sure there are actually refs to process. The old code could blindly dereference `first`, which might have been NULL. Reported by Coverity, CID 1393614
Etienne Samson committed