Skip to contentSkip to conversation

peap: Add debug statements

PATCH Applied Tim Kourt 2 participants 2 messages Dec 13, 2019 – Dec 17, 2019

lore
Share & tools
lore

Tim Kourt

author
#0 lore raw

PATCH 1/1 peap: Add debug statements

---
 src/eap-peap.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
src/eap-peap.c +6 -1
index 5de6e862..ee71514a 100644
@@ -170,6 +170,8 @@ static int eap_extensions_handle_cryptobinding_tlv(struct eap_state *eap,
 	uint8_t buf[61];
 	uint8_t imck[60];
 
+	l_debug();
+
 	if (tlv_value_len != cryptobinding_val_len)
 		return -EBADMSG;
 
@@ -405,8 +407,11 @@ static void eap_extensions_handle_request(struct eap_state *eap,
 					&response[EAP_EXTENSIONS_HEADER_LEN],
 					&result);
 
-	if (response_len < 0)
+	if (response_len < 0) {
+		l_debug("PEAP: Failed to process TLVs %d", response_len);
+
 		return;
+	}
 
 	response_len += EAP_EXTENSIONS_HEADER_LEN;
 
Signature · 1 line
2.13.6
#1 lore raw

Hi Tim,

Quoted 4 lines · Tim Kourt
---
  src/eap-peap.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis