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:
Jon Shallow committed 2026-03-26 09:50:00 +00:00
1 parent 008cff1d51
commit 784d0d083d
7 files changed
+27 -5

No files matched your search

+1
View File
@@ -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;
}
}
+1
View File
@@ -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;
}
}
+1
View File
@@ -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;
}
}