block. not sure...
authorGünther Deschner <gd@samba.org>
Sun, 24 Sep 2017 15:57:19 +0000 (17:57 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 25 Jun 2018 12:56:40 +0000 (14:56 +0200)
source4/torture/smb2/block.c

index 54fc378e43a00bc2f258410cbed817fe2806e59c..29db460bbd3e42d597e7d6072bed104672827fcf 100644 (file)
@@ -121,6 +121,12 @@ static const char *samba_chain_name(struct torture_context *tctx,
        s = talloc_strdup(tctx, sm);
        free(sm);
 
+       if (strlen(s) > 29) {
+               torture_warning(tctx,
+                       "chain name '%s' long than 29 characters\n", s);
+               return NULL;
+       }
+
        return s;
 }