conntrack: Fix NULL pointer dereference.
Coverity CID 279957 reports NULL pointer derefence when
'conn' is NULL and calling ct_print_conn_info.
Cc: Usman Ansari
Acked-by: Dumitru Ceara
@@ -1302,7 +1302,7 @@ process_one(struct conntrack *ct, struct dp_packet *pkt,
if (!conn) {
pkt->md.ct_state |= CS_TRACKED | CS_INVALID;
char *log_msg = xasprintf("Missing master conn %p", rev_conn);
- ct_print_conn_info(conn, log_msg, VLL_INFO, true, true);
+ ct_print_conn_info(rev_conn, log_msg, VLL_INFO, true, true);
free(log_msg);
return;
}
