fix(internal): Correct potential nil pointer err
[ric-plt/lib/rmr.git] / src / rmr / nng / src / mt_call_nng_static.c
index 2ef21f6..325b313 100644 (file)
@@ -91,13 +91,8 @@ static void* mt_receive( void* vctx ) {
                                                queue_normal( ctx, mbuf );
                                        } else {
                                                chute = &ctx->chutes[call_id];
-                                               if( memcmp( mbuf->xaction, chute->expect, RMR_MAX_XID ) == 0 ) {                // match
-                                                       chute->mbuf = mbuf;
-                                                       sem_post( &chute->barrier );
-                                               } else {
-                                                       rmr_free_msg( mbuf );
-                                                       mbuf = NULL;
-                                               }
+                                               chute->mbuf = mbuf;
+                                               sem_post( &chute->barrier );                            // the call function can vet xaction id in their own thread
                                        }
                                }
                        }