1. Check allocation success. 2. Check parameter correctness in the use_srtp extension in server and client.