aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/asn1.c')
-rw-r--r--src/tls/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/asn1.c b/src/tls/asn1.c
index 97462fa..cec1092 100644
--- a/src/tls/asn1.c
+++ b/src/tls/asn1.c
@@ -166,7 +166,7 @@ void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len)
ret = os_snprintf(pos, buf + len - pos,
"%s%lu",
i == 0 ? "" : ".", oid->oid[i]);
- if (ret < 0 || ret >= buf + len - pos)
+ if (os_snprintf_error(buf + len - pos, ret))
break;
pos += ret;
}