aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_ttls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eap_peer/eap_ttls.c')
-rw-r--r--src/eap_peer/eap_ttls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_peer/eap_ttls.c b/src/eap_peer/eap_ttls.c
index a8f4a2d..f051e5b 100644
--- a/src/eap_peer/eap_ttls.c
+++ b/src/eap_peer/eap_ttls.c
@@ -1571,7 +1571,7 @@ static int eap_ttls_get_status(struct eap_sm *sm, void *priv, char *buf,
ret = os_snprintf(buf + len, buflen - len,
"EAP-TTLSv%d Phase2 method=",
data->ttls_version);
- if (ret < 0 || (size_t) ret >= buflen - len)
+ if (os_snprintf_error(buflen - len, ret))
return len;
len += ret;
switch (data->phase2_type) {