mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 16:05:50 +03:00
bugfix, again
This commit is contained in:
1 parent
9ea2392c2a
commit
e996a100b5
1 file changed
+3
-2
@@ -72,8 +72,9 @@ coap_split_uri(unsigned char *str_var, size_t len, coap_uri_t *uri) {
|
||||
}
|
||||
|
||||
/* There might be an additional 's', indicating the secure version: */
|
||||
if ( len && (secure = tolower(*p) == 's') )
|
||||
++p;
|
||||
if ( len && (secure = tolower(*p) == 's') ) {
|
||||
++p; --len;
|
||||
}
|
||||
|
||||
q = (unsigned char *)"://";
|
||||
while (len && *q && tolower(*p) == *q) {
|
||||
|
||||
Reference in new issue
Block a user