diff --git a/src/openvpn/dco_freebsd.c b/src/openvpn/dco_freebsd.c
index 11b8dff..6701d21 100644
--- a/src/openvpn/dco_freebsd.c
+++ b/src/openvpn/dco_freebsd.c
@@ -916,7 +916,11 @@
 int
 dco_get_peer_stats(struct context *c, const bool raise_sigusr1_on_err)
 {
-    ASSERT(c->c2.tls_multi);
+    /* tls_multi is NULL during a restart */
+    if (!c->c2.tls_multi)
+    {
+        return -EINVAL;
+    }
     msg(D_DCO_DEBUG, "%s: peer-id %d", __func__, c->c2.tls_multi->dco_peer_id);
 
     if (c->c2.tls_multi->dco_peer_id < 0)
diff --git a/src/openvpn/dco_linux.c b/src/openvpn/dco_linux.c
index 3a55b6e..befad61 100644
--- a/src/openvpn/dco_linux.c
+++ b/src/openvpn/dco_linux.c
@@ -1280,7 +1280,8 @@
 int
 dco_get_peer_stats(struct context *c, const bool raise_sigusr1_on_err)
 {
-    if (!c->c1.tuntap || c->c1.tuntap->dco.ifindex == 0)
+    /* tls_multi is NULL during a restart, while a persisted tun is still around */
+    if (!c->c1.tuntap || c->c1.tuntap->dco.ifindex == 0 || !c->c2.tls_multi)
     {
         return -1;
     }
diff --git a/src/openvpn/dco_win.c b/src/openvpn/dco_win.c
index a854045..eff4d33 100644
--- a/src/openvpn/dco_win.c
+++ b/src/openvpn/dco_win.c
@@ -898,7 +898,8 @@
 {
     const struct tuntap *tt = c->c1.tuntap;
 
-    if (!tuntap_defined(tt))
+    /* tls_multi is NULL during a restart, while a persisted tun is still around */
+    if (!tuntap_defined(tt) || !c->c2.tls_multi)
     {
         return -1;
     }
