From 72b9ece30bff40e3db73bf702d83a04d44e3a5a9 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 29 Apr 2021 17:21:50 +0200 Subject: [PATCH] fix --- sink/sink20169.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index b9c3c55..42e8358 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -194,6 +194,7 @@ void freeDevice(t_commonHandle *handle) { handle->foundDevice.deviceId = NULL; handle->foundDevice.sharedSecret = NULL; handle->foundDevice.location = NULL; + logmsg(LOG_DEBUG, "device has been free"); } } @@ -253,7 +254,7 @@ int receiveAndVerifyMinuteBuffer(t_commonHandle *handle, t_minuteBuffer *buf) { logmsg(LOG_ERR, "Device %s not found", buf->s.deviceId); return -4; } - char *sharedSecret = handle->foundDevice.sharedSecret; + const char *sharedSecret = handle->foundDevice.sharedSecret; uint8_t receivedHash[SHA256_BLOCK_SIZE]; memcpy(receivedHash, buf->s.hash, SHA256_BLOCK_SIZE);