mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
code was untested and wrong.
--HG-- extra : convert_revision : bd8c4eb7071bb69f5cf17715072ae625a5267324
This commit is contained in:
parent
ae15e644b1
commit
9368e4db33
18
scp.c
18
scp.c
@ -234,18 +234,18 @@ do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc)
|
||||
#ifdef __uClinux__
|
||||
/* clean up command */
|
||||
/* pop cmd */
|
||||
xfree(args->list[args->num-1]);
|
||||
args->list[args->num-1]=NULL;
|
||||
args->num--;
|
||||
xfree(args.list[args.num-1]);
|
||||
args.list[args.num-1]=NULL;
|
||||
args.num--;
|
||||
/* pop host */
|
||||
xfree(args->list[args->num-1]);
|
||||
args->list[args->num-1]=NULL;
|
||||
args->num--;
|
||||
xfree(args.list[args.num-1]);
|
||||
args.list[args.num-1]=NULL;
|
||||
args.num--;
|
||||
/* pop user */
|
||||
if (remuser != NULL) {
|
||||
xfree(args->list[args->num-1]);
|
||||
args->list[args->num-1]=NULL;
|
||||
args->num--;
|
||||
xfree(args.list[args.num-1]);
|
||||
args.list[args.num-1]=NULL;
|
||||
args.num--;
|
||||
}
|
||||
#endif /* __uClinux__ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user