]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Move 192 bytes from R/W .data to R/O (shared) .text
authorVolker Lendecke <vl@samba.org>
Tue, 6 May 2025 11:52:57 +0000 (13:52 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 15 May 2025 14:03:34 +0000 (14:03 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smbXcli_base.c

index eecd73d06785a977220add17c5bd08caffff6509..d1e36a3fa1eed62feb81b476ab7a4e1630274f91 100644 (file)
@@ -4236,7 +4236,7 @@ NTSTATUS smb2cli_req_get_sent_iov(struct tevent_req *req,
 
 static const struct {
        enum protocol_types proto;
-       const char *smb1_name;
+       const char smb1_name[24]; /* strlen("MICROSOFT NETWORKS 1.03") == 23 */
 } smb1cli_prots[] = {
        {PROTOCOL_CORE,         "PC NETWORK PROGRAM 1.0"},
        {PROTOCOL_COREPLUS,     "MICROSOFT NETWORKS 1.03"},