librpc:rpc: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Tue, 6 Jun 2023 11:00:06 +0000 (13:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Jun 2023 13:44:31 +0000 (13:44 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/rpc/dcerpc_util.c
librpc/rpc/dcerpc_util.h
librpc/rpc/dcesrv_core.c

index d598ddc2273778fd68067ec72917d72434302cc7..0ecb2bff1fa86eb66537cb991b09d645f6ed5f88 100644 (file)
@@ -215,14 +215,14 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx,
 *              the whole data blob, so auth_data_only must be set to false
 *              as the blob contains data+pad+auth and no just pad+auth.
 *
-* @param pkt           - The ncacn_packet strcuture
+* @param pkt           - The ncacn_packet structure
 * @param mem_ctx       - The mem_ctx used to allocate dcerpc_auth elements
 * @param pkt_trailer   - The packet trailer data, usually the trailing
 *                        auth_info blob, but in the request/response case
 *                        this is the stub_and_verifier blob.
 * @param auth          - A preallocated dcerpc_auth *empty* structure
 * @param auth_length   - The length of the auth trail, sum of auth header
-*                        lenght and pkt->auth_length
+*                        length and pkt->auth_length
 * @param auth_data_only        - Whether the pkt_trailer includes only the auth_blob
 *                        (+ padding) or also other data.
 *
@@ -340,7 +340,7 @@ NTSTATUS dcerpc_pull_auth_trailer(const struct ncacn_packet *pkt,
        }
 
        /*
-        * This is a workarround for a bug in old
+        * This is a workaround for a bug in old
         * Samba releases. For BIND_ACK <= 3.5.x
         * and for ALTER_RESP <= 4.2.x (see bug #11061)
         *
@@ -412,7 +412,7 @@ NTSTATUS dcerpc_pull_auth_trailer(const struct ncacn_packet *pkt,
 /**
 * @brief       Verify the fields in ncacn_packet header.
 *
-* @param pkt           - The ncacn_packet strcuture
+* @param pkt           - The ncacn_packet structure
 * @param ptype         - The expected PDU type
 * @param max_auth_info - The maximum size of a possible auth trailer
 * @param required_flags        - The required flags for the pdu.
index a9bc7bd383208f9b69250f436f30fab033fcdaf3..4e49e3e85725d83794e8c0f3d911af6f3ce1501c 100644 (file)
@@ -50,14 +50,14 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx,
 *              the whole data blob, so auth_data_only must be set to false
 *              as the blob contains data+pad+auth and no just pad+auth.
 *
-* @param pkt           - The ncacn_packet strcuture
+* @param pkt           - The ncacn_packet structure
 * @param mem_ctx       - The mem_ctx used to allocate dcerpc_auth elements
 * @param pkt_trailer   - The packet trailer data, usually the trailing
 *                        auth_info blob, but in the request/response case
 *                        this is the stub_and_verifier blob.
 * @param auth          - A preallocated dcerpc_auth *empty* structure
 * @param auth_length   - The length of the auth trail, sum of auth header
-*                        lenght and pkt->auth_length
+*                        length and pkt->auth_length
 * @param auth_data_only        - Whether the pkt_trailer includes only the auth_blob
 *                        (+ padding) or also other data.
 *
index d0e68d585e372a0d160bbb1b67a4a37c8a16b3bc..09ea68122494211af1bf0c7c32d4a1444f28fa2f 100644 (file)
@@ -306,7 +306,7 @@ _PUBLIC_ NTSTATUS dcesrv_interface_register_b(struct dcesrv_context *dce_ctx,
                 * listen on distinct ports, if they have one forced
                 * in the code above with eg 'rpc server port:drsuapi = 1027'
                 *
-                * If we have mulitiple endpoints on port 0, they each
+                * If we have multiple endpoints on port 0, they each
                 * get an epemeral port (currently by walking up from
                 * 1024).
                 *