Mercurial > dropbear
comparison scp.c @ 289:497fddd4a94e
code was untested and wrong.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 15:46:24 +0000 |
parents | b72f98803e46 |
children | 973fccb59ea4 c0ce48053259 |
comparison
equal
deleted
inserted
replaced
288:a933abec6d06 | 289:497fddd4a94e |
---|---|
232 | 232 |
233 | 233 |
234 #ifdef __uClinux__ | 234 #ifdef __uClinux__ |
235 /* clean up command */ | 235 /* clean up command */ |
236 /* pop cmd */ | 236 /* pop cmd */ |
237 xfree(args->list[args->num-1]); | 237 xfree(args.list[args.num-1]); |
238 args->list[args->num-1]=NULL; | 238 args.list[args.num-1]=NULL; |
239 args->num--; | 239 args.num--; |
240 /* pop host */ | 240 /* pop host */ |
241 xfree(args->list[args->num-1]); | 241 xfree(args.list[args.num-1]); |
242 args->list[args->num-1]=NULL; | 242 args.list[args.num-1]=NULL; |
243 args->num--; | 243 args.num--; |
244 /* pop user */ | 244 /* pop user */ |
245 if (remuser != NULL) { | 245 if (remuser != NULL) { |
246 xfree(args->list[args->num-1]); | 246 xfree(args.list[args.num-1]); |
247 args->list[args->num-1]=NULL; | 247 args.list[args.num-1]=NULL; |
248 args->num--; | 248 args.num--; |
249 } | 249 } |
250 #endif /* __uClinux__ */ | 250 #endif /* __uClinux__ */ |
251 | 251 |
252 /* Parent. Close the other side, and return the local side. */ | 252 /* Parent. Close the other side, and return the local side. */ |
253 close(pin[0]); | 253 close(pin[0]); |