Mercurial > dropbear
comparison cli-authinteract.c @ 378:a124aff0cbf1
merge of '182c2d8dbd5321ef4d1df8758936f4dc7127015f'
and '31dcd7a22983ef19d6c63248e415e71d292dd0ec'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 06 Dec 2006 13:11:41 +0000 |
parents | 31743c9bdf78 |
children | a24139ba08c8 |
comparison
equal
deleted
inserted
replaced
377:1bfa65fed772 | 378:a124aff0cbf1 |
---|---|
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); |