comparison signkey.c @ 651:a48a1f6ab43e

- Fix some format strings in TRACE()s
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2011 05:24:50 +0800
parents a98a2138364a
children 9a5438271556 f336d232fc63
comparison
equal deleted inserted replaced
650:df11cb6a3665 651:a48a1f6ab43e
103 ident = buf_getstring(buf, &len); 103 ident = buf_getstring(buf, &len);
104 keytype = signkey_type_from_name(ident, len); 104 keytype = signkey_type_from_name(ident, len);
105 m_free(ident); 105 m_free(ident);
106 106
107 if (*type != DROPBEAR_SIGNKEY_ANY && *type != keytype) { 107 if (*type != DROPBEAR_SIGNKEY_ANY && *type != keytype) {
108 TRACE(("buf_get_pub_key bad type - got %d, expected %d", keytype, type)) 108 TRACE(("buf_get_pub_key bad type - got %d, expected %d", keytype, *type))
109 return DROPBEAR_FAILURE; 109 return DROPBEAR_FAILURE;
110 } 110 }
111 111
112 TRACE(("buf_get_pub_key keytype is %d")) 112 TRACE(("buf_get_pub_key keytype is %d", keytype))
113 113
114 *type = keytype; 114 *type = keytype;
115 115
116 /* Rewind the buffer back before "ssh-rsa" etc */ 116 /* Rewind the buffer back before "ssh-rsa" etc */
117 buf_incrpos(buf, -len - 4); 117 buf_incrpos(buf, -len - 4);