From: Volker Lendecke Date: Mon, 15 Dec 2025 12:25:46 +0000 (+0100) Subject: smbd: A TCP port is uint16, fix variable type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5537c08b2de7e70fbd326ac165a4eaf914dd5a4;p=thirdparty%2Fsamba.git smbd: A TCP port is uint16, fix variable type Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index af899e20808..82ca120c2cd 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -433,14 +433,15 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req) max_limit = 0x10000; if (protocol >= PROTOCOL_SMB2_10) { - int p = 0; + uint16_t port = 0; if (tsocket_address_is_inet(req->sconn->local_address, "ip")) { - p = tsocket_address_inet_port(req->sconn->local_address); + port = tsocket_address_inet_port( + req->sconn->local_address); } /* largeMTU is not supported over NBT (tcp port 139) */ - if (p != NBT_SMB_PORT) { + if (port != NBT_SMB_PORT) { capabilities |= SMB2_CAP_LARGE_MTU; xconn->smb2.credits.multicredit = true;