Skip to content

Commit

Permalink
#522: fix secretKey was written instead of serverPubKey in client
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jun 14, 2018
1 parent b996057 commit fdc0897
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -141,7 +141,7 @@ public WriteResponse write(int resourceId, LwM2mResource value) {
if (value.getType() != Type.OPAQUE) {
return WriteResponse.badRequest("invalid type");
}
secretKey = (byte[]) value.getValue();
serverPublicKey = (byte[]) value.getValue();
return WriteResponse.success();
case SEC_SECRET_KEY: // Secret Key
if (value.getType() != Type.OPAQUE) {
Expand Down

0 comments on commit fdc0897

Please sign in to comment.