diff options
author | Stefan Metzmacher <metze@samba.org> | 2016-12-29 11:13:55 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2017-01-02 18:04:13 +0100 |
commit | e8383471056805233588e1ecc79c1d590cbc93f0 (patch) | |
tree | 0254f2f0ea0883cb3ce7ee7a64225b3299af9a88 | |
parent | 94fc5c48b756d2938589c0b9363f29995a08ea2f (diff) | |
download | samba-e8383471056805233588e1ecc79c1d590cbc93f0.tar.gz |
s4:librpc/rpc: make sure we handle DCERPC_PACKET before DCERPC_CONNECT
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index bdebf798198..a0b00aff817 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -2051,10 +2051,10 @@ uint32_t dcerpc_auth_level(struct dcecli_connection *c) auth_level = DCERPC_AUTH_LEVEL_PRIVACY; } else if (c->flags & DCERPC_SIGN) { auth_level = DCERPC_AUTH_LEVEL_INTEGRITY; - } else if (c->flags & DCERPC_CONNECT) { - auth_level = DCERPC_AUTH_LEVEL_CONNECT; } else if (c->flags & DCERPC_PACKET) { auth_level = DCERPC_AUTH_LEVEL_PACKET; + } else if (c->flags & DCERPC_CONNECT) { + auth_level = DCERPC_AUTH_LEVEL_CONNECT; } else { auth_level = DCERPC_AUTH_LEVEL_NONE; } |