mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
ldap: Promote uint8 to uint64 before shifting
Relates to zeek/spicy#1829
This commit is contained in:
parent
2c62ecf57d
commit
2be39cf0d0
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ type MaybeEncrypted = unit(ctx: Ctx&) {
|
||||||
# If so, switch into KRB mode assuming that's what is being used and
|
# If so, switch into KRB mode assuming that's what is being used and
|
||||||
# have a chance seeing some more plaintext LDAP in non-sealed tokens.
|
# have a chance seeing some more plaintext LDAP in non-sealed tokens.
|
||||||
rem: uint8[3] if ( ctx.messageMode == MessageMode::ENCRYPTED && (|self.mech| == 0 || self.mech.starts_with(b"GSS")) ) {
|
rem: uint8[3] if ( ctx.messageMode == MessageMode::ENCRYPTED && (|self.mech| == 0 || self.mech.starts_with(b"GSS")) ) {
|
||||||
self.saslLen = (self.first << 24) + ($$[0] << 16) + ($$[1] << 8) + $$[2];
|
self.saslLen = (uint64(self.first) << 24) + (uint64($$[0]) << 16) + (uint64($$[1]) << 8) + uint64($$[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
: uint16 if ( self.saslLen >= 2 ) {
|
: uint16 if ( self.saslLen >= 2 ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue