From eecd9282a56684e64f6836c0e1686dd6b230fc5a Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus <uhaus@hpe.com> Date: Tue, 16 Nov 2021 17:15:24 +0100 Subject: [PATCH] Fix check for 0-size CDOs reported no-memory-registration errors for almost all CDOs now due to a typo in dccf6ec0f0d9199c13931e51ae8cb729a8fb37e8 --- maestro/pool_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maestro/pool_client.c b/maestro/pool_client.c index b429326f..7bfea9f2 100644 --- a/maestro/pool_client.c +++ b/maestro/pool_client.c @@ -808,7 +808,7 @@ mstro_pc__handle_transfer_completed(Mstro__Pool__MstroMsg *msg) goto DONE; } int64_t realsize = *(int64_t*)size; - if(realsize==-1 && realsize!=0) { + if(realsize==-1 || realsize==0) { s=MSTRO_OK; // 0-size CDO or type-0 CDO DEBUG("Source CDO empty, doing NULL transfer\n"); s=MSTRO_OK; -- GitLab