Commit: 19368a6794aedba8f44b76a7389176c6fc5d770f
Parent: 8be4f824a909951789dc86e26bc7c960a6050aac
Author: Michael Forney
Date: Sun, 17 May 2026 01:42:33 -0700
openbsd: Fix implicit pointer sign conversion in nc
Diffstat:
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/pkg/openbsd/patch/0043-nc-Use-explicit-cast-for-pointer-sign-conversion.patch b/pkg/openbsd/patch/0043-nc-Use-explicit-cast-for-pointer-sign-conversion.patch
@@ -0,0 +1,25 @@
+From 4da7b308eb6d8c7947d3ea0106a49c8ab6e3481a Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Sun, 17 May 2026 01:40:40 -0700
+Subject: [PATCH] nc: Use explicit cast for pointer sign conversion
+
+---
+ usr.bin/nc/netcat.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
+index 74d18595309..bb170967d8e 100644
+--- a/usr.bin/nc/netcat.c
++++ b/usr.bin/nc/netcat.c
+@@ -1751,7 +1751,7 @@ save_peer_cert(struct tls *tls_ctx, FILE *fp)
+ const char *pem;
+ size_t plen;
+
+- if ((pem = tls_peer_cert_chain_pem(tls_ctx, &plen)) == NULL)
++ if ((pem = (char *)tls_peer_cert_chain_pem(tls_ctx, &plen)) == NULL)
+ errx(1, "Can't get peer certificate");
+ if (fprintf(fp, "%.*s", (int)plen, pem) < 0)
+ err(1, "unable to save peer cert");
+--
+2.54.0
+
diff --git a/pkg/openbsd/ver b/pkg/openbsd/ver
@@ -1 +1 @@
-7.8 r2
+7.8 r3