Browse Source

modules_k/xcap_server: Fixed small mistake in last xcap_server fix

Peter Dunkley 13 năm trước cách đây
mục cha
commit
10dafd7587
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules_k/xcap_server/xcap_server.c

+ 1 - 1
modules_k/xcap_server/xcap_server.c

@@ -1342,7 +1342,7 @@ static int check_match_header(str body, str *etag)
 	if (etag == NULL)
 		return -1;
 
-	if (etag->s || etag->len == 0)
+	if (etag->s == NULL || etag->len == 0)
 		return -1;
 
 	do