Browse code

- fixed some more bugs spotted by Anca

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4771 689a6050-402a-0410-94f2-e92a70836424

Klaus Darilion authored on 29/08/2008 10:26:38
Showing 2 changed files
... ...
@@ -325,7 +325,7 @@ int handle_publish(struct sip_msg* msg, char* sender_uri, char* str2)
325 325
 			reply_str= pu_400a_rpl;
326 326
 			goto error;
327 327
 		}
328
-		if(((event_t*)msg->event->parsed)->parsed & EVENT_OTHER)
328
+		if(((event_t*)msg->event->parsed)->parsed == EVENT_OTHER)
329 329
 		{	
330 330
 			goto unsupported_event;
331 331
 		}
... ...
@@ -443,7 +443,7 @@ int handle_publish(struct sip_msg* msg, char* sender_uri, char* str2)
443 443
 		}
444 444
 		body.len= get_content_length( msg );
445 445
 
446
-		if(sphere_enable && event->evp->parsed & EVENT_PRESENCE &&
446
+		if(sphere_enable && event->evp->parsed == EVENT_PRESENCE &&
447 447
 				get_content_type(msg)== SUBTYPE_PIDFXML)
448 448
 		{
449 449
 			sphere= extract_sphere(body);			
... ...
@@ -507,7 +507,7 @@ int handle_subscribe(struct sip_msg* msg, char* str1, char* str2)
507 507
 			reply_str= pu_400_rpl;
508 508
 			goto error;
509 509
 		}
510
-		if(((event_t*)msg->event->parsed)->parsed & EVENT_OTHER)
510
+		if(((event_t*)msg->event->parsed)->parsed == EVENT_OTHER)
511 511
 		{	
512 512
 			goto bad_event;
513 513
 		}