Mercurial > dropbear
comparison cli-authinteract.c @ 478:d4f32c3443ac dbclient-netcat-alike
propagate from branch 'au.asn.ucc.matt.dropbear' (head f21045c791002d81fc6b8dde6537ea481e513eb2)
to branch 'au.asn.ucc.matt.dropbear.dbclient-netcat-alike' (head d1f69334581dc4c35f9ca16aa5355074c9dd315d)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 14 Sep 2008 06:47:51 +0000 |
parents | 31743c9bdf78 |
children | a24139ba08c8 |
comparison
equal
deleted
inserted
replaced
296:6b41e2cbf071 | 478:d4f32c3443ac |
---|---|
97 buf_putint(ses.writepayload, num_prompts); | 97 buf_putint(ses.writepayload, num_prompts); |
98 | 98 |
99 if (strlen(name) > 0) { | 99 if (strlen(name) > 0) { |
100 cleantext(name); | 100 cleantext(name); |
101 fprintf(stderr, "%s", name); | 101 fprintf(stderr, "%s", name); |
102 m_free(name); | |
103 } | 102 } |
103 m_free(name); | |
104 | |
104 if (strlen(instruction) > 0) { | 105 if (strlen(instruction) > 0) { |
105 cleantext(instruction); | 106 cleantext(instruction); |
106 fprintf(stderr, "%s", instruction); | 107 fprintf(stderr, "%s", instruction); |
107 m_free(instruction); | |
108 } | 108 } |
109 m_free(instruction); | |
109 | 110 |
110 for (i = 0; i < num_prompts; i++) { | 111 for (i = 0; i < num_prompts; i++) { |
111 unsigned int response_len = 0; | 112 unsigned int response_len = 0; |
112 prompt = buf_getstring(ses.payload, NULL); | 113 prompt = buf_getstring(ses.payload, NULL); |
113 cleantext(prompt); | 114 cleantext(prompt); |