comparison cli-authinteract.c @ 398:59c7938af2bd

merge of '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c' and '7f8670ac3bb975f40967f3979d09d2199b7e90c8'
author Matt Johnston <matt@ucc.asn.au>
date Sat, 03 Feb 2007 08:20:30 +0000
parents 31743c9bdf78
children a24139ba08c8
comparison
equal deleted inserted replaced
396:e7c1a77d2921 398:59c7938af2bd
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);