1 --- src/raptor_rfc2396.c
2 +++ src/raptor_rfc2396.c
7 - if(prev && s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
8 + if(prev && cur && s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
9 /* Remove <component>/.. at the end of the path */
15 !strncmp((const char*)base_detail->scheme,
16 (const char*)reference_detail->scheme,
17 base_detail->scheme_len) &&
18 - !strncmp((const char*)base_detail->authority,
19 + (base_detail->authority_len == 0 || !strncmp((const char*)base_detail->authority,
20 (const char*)reference_detail->authority,
21 - base_detail->authority_len)) {
22 + base_detail->authority_len))) {
24 if(!base_detail->path) {
25 if(reference_detail->path) {