From d7f55270037ef7bad5bdaed43dc68c27204c5ed7 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Mon, 26 Jul 2010 00:03:10 +0200 Subject: [PATCH] bugfix: accept empty request URIs --- pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdu.c b/pdu.c index 352c8ba0..4aadb4b4 100644 --- a/pdu.c +++ b/pdu.c @@ -157,7 +157,7 @@ coap_get_request_uri(coap_pdu_t *pdu, coap_uri_t *result) { if ((opt = coap_check_option(pdu, COAP_OPTION_URI_PATH))) COAP_SET_STR(&result->path, COAP_OPT_LENGTH(*opt), COAP_OPT_VALUE(*opt)); - return result->scheme.length || result->na.length || result->path.length; + return 1; } #if 0