s3:libsmb: move cli->protocol to cli->conn.protocol
[ira/wip.git] / source3 / include / client.h
index 8a26e73c155c03c7e17cd48a12f07afcc992af8a..21ad457cb543c5222c76285577a0fe823f06fca4 100644 (file)
@@ -42,7 +42,6 @@ struct cli_state {
         * A list of subsidiary connections for DFS.
         */
         struct cli_state *prev, *next;
-       enum protocol_types protocol;
        int sec_mode;
        int rap_error;
        NTSTATUS raw_status; /* maybe via NT_STATUS_DOS() */
@@ -126,6 +125,8 @@ struct cli_state {
                NTSTATUS (*dispatch_incoming)(struct cli_state *cli,
                                              TALLOC_CTX *frame,
                                              uint8_t *inbuf);
+
+               enum protocol_types protocol;
        } conn;
 
        struct {