[LTP] [PATCH] tirpc_clnt_destroy: Determine the return value of clnt_create()

Petr Vorel pvorel@suse.cz
Mon Oct 21 14:22:31 CEST 2024


Hi all,

> On Thu, Sep 26, 2024 at 12:13:58PM +0800, Ma Xinjian wrote:
> > Determine the return value of clnt_create() to avoid segmentation fault
> > when executing clnt_destroy() when the return value of create is NULL.

...

> That's the basic idea. And then apply the same fix to other tests
> that call the clnt_create(3) APIs.

Thanks a lot for fix and review, very much appreciated.
@Ma Xinjian or @Chen Hanxiao, could you please add this cleanup to all tests
which use clnt_create() as Chuck suggested?

Kind regards,
Petr

> Reviewed-by: Chuck Lever <chuck.lever@oracle.com>


More information about the ltp mailing list