@@ -378,6 +378,7 @@ void orte_data_server(int status, orte_process_name_t* sender,
378
378
379
379
/* unpack any info elements */
380
380
count = 1 ;
381
+ uid = UINT32_MAX ;
381
382
while (ORTE_SUCCESS == (rc = opal_dss .unpack (buffer , & iptr , & count , OPAL_VALUE ))) {
382
383
/* if this is the userid, separate it out */
383
384
if (0 == strcmp (iptr -> key , OPAL_PMIX_USERID )) {
@@ -389,7 +390,7 @@ void orte_data_server(int status, orte_process_name_t* sender,
389
390
/* ignore anything else for now */
390
391
OBJ_RELEASE (iptr );
391
392
}
392
- if (ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc ) {
393
+ if (ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc || UINT32_MAX == uid ) {
393
394
ORTE_ERROR_LOG (rc );
394
395
opal_argv_free (keys );
395
396
goto SEND_ERROR ;
@@ -539,6 +540,7 @@ void orte_data_server(int status, orte_process_name_t* sender,
539
540
540
541
/* unpack any info elements */
541
542
count = 1 ;
543
+ uid = UINT32_MAX ;
542
544
while (ORTE_SUCCESS == (rc = opal_dss .unpack (buffer , & iptr , & count , OPAL_VALUE ))) {
543
545
/* if this is the userid, separate it out */
544
546
if (0 == strcmp (iptr -> key , OPAL_PMIX_USERID )) {
@@ -547,7 +549,7 @@ void orte_data_server(int status, orte_process_name_t* sender,
547
549
/* ignore anything else for now */
548
550
OBJ_RELEASE (iptr );
549
551
}
550
- if (ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc ) {
552
+ if (ORTE_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc || UINT32_MAX == uid ) {
551
553
ORTE_ERROR_LOG (rc );
552
554
opal_argv_free (keys );
553
555
goto SEND_ERROR ;
0 commit comments