Cleanup and formatting

This commit is contained in:
Olof hagsand 2025-03-13 14:39:28 +01:00
parent 839077de57
commit d986ed423b
4 changed files with 5 additions and 9 deletions

View file

@ -275,11 +275,7 @@ backend_accept_client(int fd,
#error "Need getsockopt O_PEERCRED or getpeereid for unix socket peer cred"
#endif
if (name != NULL){
if ((ce->ce_username = name) == NULL){
clixon_err(OE_UNIX, errno, "strdup");
name = NULL;
goto done;
}
ce->ce_username = name;
name = NULL;
}
break;