@ -202,6 +202,7 @@ static int persist__client_chunk_restore(FILE *db_fptr)
/* username is not freed here, it is now owned by context */
/* username is not freed here, it is now owned by context */
context - > username = chunk . username ;
context - > username = chunk . username ;
chunk . username = NULL ;
chunk . username = NULL ;
}
/* in per_listener_settings mode, try to find the listener by persisted port */
/* in per_listener_settings mode, try to find the listener by persisted port */
if ( db . config - > per_listener_settings & & ! context - > listener & & chunk . F . listener_port > 0 ) {
if ( db . config - > per_listener_settings & & ! context - > listener & & chunk . F . listener_port > 0 ) {
for ( i = 0 ; i < db . config - > listener_count ; i + + ) {
for ( i = 0 ; i < db . config - > listener_count ; i + + ) {
@ -211,7 +212,6 @@ static int persist__client_chunk_restore(FILE *db_fptr)
}
}
}
}
}
}
}
/* FIXME - we should expire clients here if they have exceeded their time */
/* FIXME - we should expire clients here if they have exceeded their time */
} else {
} else {
rc = 1 ;
rc = 1 ;