diff options
author | Micael Karlberg <[email protected]> | 2013-10-18 11:32:25 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-10-21 12:50:41 +0200 |
commit | 300803837926d0bb28829f313fad07f757188d41 (patch) | |
tree | 9fdc1833b7e45b44fa3d50e48f17dcc74636336c /lib/snmp/src/agent/snmpa_mpd.erl | |
parent | a803a95c00f89932d2cfd7a7b424aad05fa276b8 (diff) | |
download | otp-300803837926d0bb28829f313fad07f757188d41.tar.gz otp-300803837926d0bb28829f313fad07f757188d41.tar.bz2 otp-300803837926d0bb28829f313fad07f757188d41.zip |
[snmp/manager] Incorrect use of EngineBoots and EngineTime when encrypting
When performing the AES encryption, invalid values for the
EngineBoots and EngineTime was used. The values of the local
agent was used, which would have produced some values if an
agent was actually running. If not it would have caused a crash.
OTP-11413
Diffstat (limited to 'lib/snmp/src/agent/snmpa_mpd.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa_mpd.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_mpd.erl b/lib/snmp/src/agent/snmpa_mpd.erl index 2d37ea56f0..11ae806866 100644 --- a/lib/snmp/src/agent/snmpa_mpd.erl +++ b/lib/snmp/src/agent/snmpa_mpd.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2012. All Rights Reserved. +%% Copyright Ericsson AB 1997-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -657,7 +657,7 @@ generate_response_msg(Vsn, RePdu, Type, ?SEC_USM -> snmpa_usm end, - SecEngineID = LocalEngineID, + SecEngineID = LocalEngineID, % 3.1.1a ?vtrace("generate_response_msg -> SecEngineID: ~w", [SecEngineID]), case (catch SecModule:generate_outgoing_msg(Message, SecEngineID, |