mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-03 03:01:05 +03:00
coap_oscore.c: Process queued OSCORE Observe responses after de-registration
If an Observe is de-registered, but an unsolicited Observe response is received before the de-register response is received, then the unsolicited response failed to get decrypted.
This commit is contained in:
1 parent
008cff1d51
commit
784d0d083d
7 files changed
+27
-5
No files matched your search
@@ -796,6 +796,7 @@ get_oscore_conf(void) {
|
||||
if (oscore_seq_num_fp == NULL) {
|
||||
fprintf(stderr, "OSCORE save restart info file error: %s\n",
|
||||
oscore_seq_save_file);
|
||||
coap_free(buf);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1949,6 +1949,7 @@ get_oscore_conf(coap_context_t *context) {
|
||||
if (oscore_seq_num_fp == NULL) {
|
||||
fprintf(stderr, "OSCORE save restart info file error: %s\n",
|
||||
oscore_seq_save_file);
|
||||
coap_free(buf);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -526,6 +526,7 @@ get_oscore_conf(coap_context_t *context) {
|
||||
if (oscore_seq_num_fp == NULL) {
|
||||
fprintf(stderr, "OSCORE save restart info file error: %s\n",
|
||||
oscore_seq_save_file);
|
||||
coap_free(buf);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user