mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +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__
|
#ifdef __uClinux__
|
||||||
/* clean up command */
|
/* clean up command */
|
||||||
/* pop cmd */
|
/* pop cmd */
|
||||||
xfree(args->list[args->num-1]);
|
xfree(args.list[args.num-1]);
|
||||||
args->list[args->num-1]=NULL;
|
args.list[args.num-1]=NULL;
|
||||||
args->num--;
|
args.num--;
|
||||||
/* pop host */
|
/* pop host */
|
||||||
xfree(args->list[args->num-1]);
|
xfree(args.list[args.num-1]);
|
||||||
args->list[args->num-1]=NULL;
|
args.list[args.num-1]=NULL;
|
||||||
args->num--;
|
args.num--;
|
||||||
/* pop user */
|
/* pop user */
|
||||||
if (remuser != NULL) {
|
if (remuser != NULL) {
|
||||||
xfree(args->list[args->num-1]);
|
xfree(args.list[args.num-1]);
|
||||||
args->list[args->num-1]=NULL;
|
args.list[args.num-1]=NULL;
|
||||||
args->num--;
|
args.num--;
|
||||||
}
|
}
|
||||||
#endif /* __uClinux__ */
|
#endif /* __uClinux__ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user