On 3/19/23 4:15 AM, Markus Elfring wrote: > Date: Sat, 18 Mar 2023 21:08:58 +0100 > <...> > +disassoc_socket: > + erdma_socket_disassoc(new_s); > + sock_release(new_s); > + new_cep->state = ERDMA_EPSTATE_CLOSED; > + erdma_cancel_mpatimer(new_cep); > +put_cep: > + erdma_cep_put(new_cep);> + new_cep->sock = NULL; Thanks, but this causes an use-after-free issue because new_cep will be released after last erdma_cep_put being called. Cheng Xu > } > > static int erdma_newconn_connected(struct erdma_cep *cep)