mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Merging in the changes from 0.41-0.43 main Dropbear tree
--HG-- extra : convert_revision : 4c3428781bc8faf0fd7cadd7099fbd7f4ea386e7
This commit is contained in:
@@ -64,7 +64,7 @@ int agentreq(struct ChanSess * chansess) {
|
||||
|
||||
/* create the unix socket dir and file */
|
||||
if (bindagent(fd, chansess) == DROPBEAR_FAILURE) {
|
||||
return DROPBEAR_FAILURE;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* listen */
|
||||
@@ -146,7 +146,7 @@ void agentcleanup(struct ChanSess * chansess) {
|
||||
chansess->agentlistener = NULL;
|
||||
}
|
||||
|
||||
if (chansess->agentfile && chansess->agentdir) {
|
||||
if (chansess->agentfile != NULL && chansess->agentdir != NULL) {
|
||||
|
||||
/* Remove the dir as the user. That way they can't cause problems except
|
||||
* for themselves */
|
||||
|
||||
Reference in New Issue
Block a user