Make sure first argument is an int when using %.*s to print e.g. chunks
This commit is contained in:
@@ -33,7 +33,7 @@ struct private_tnc_pdp_connections_t {
|
||||
|
||||
/**
|
||||
* List of TNC PEP RADIUS Connections
|
||||
*/
|
||||
*/
|
||||
linked_list_t *list;
|
||||
};
|
||||
|
||||
@@ -94,13 +94,14 @@ static void dbg_nas_user(chunk_t nas_id, chunk_t user_name, bool not, char *op)
|
||||
if (nas_id.len)
|
||||
{
|
||||
DBG1(DBG_CFG, "%s RADIUS connection for user '%.*s' NAS '%.*s'",
|
||||
not ? "could not find" : op, user_name.len, user_name.ptr,
|
||||
nas_id.len, nas_id.ptr);
|
||||
not ? "could not find" : op, (int)user_name.len,
|
||||
user_name.ptr, (int)nas_id.len, nas_id.ptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG1(DBG_CFG, "%s RADIUS connection for user '%.*s'",
|
||||
not ? "could not find" : op, user_name.len, user_name.ptr);
|
||||
DBG1(DBG_CFG, "%s RADIUS connection for user '%.*s'",
|
||||
not ? "could not find" : op, (int)user_name.len,
|
||||
user_name.ptr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +135,7 @@ METHOD(tnc_pdp_connections_t, add, void,
|
||||
}
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
|
||||
if (!found)
|
||||
{
|
||||
entry = malloc_thing(entry_t);
|
||||
|
||||
Reference in New Issue
Block a user