Browse code

presence: fixed bug in taking the parsed event structure

Daniel-Constantin Mierla authored on 06/05/2009 18:52:32
Showing 1 changed files
... ...
@@ -334,7 +334,7 @@ int handle_publish(struct sip_msg* msg, char* sender_uri, char* str2)
334 334
 		goto unsupported_event;
335 335
 
336 336
 	/* search event in the list */
337
-	event= search_event((event_t*)msg->event->type);
337
+	event= search_event((event_t*)msg->event->parsed);
338 338
 	if(event== NULL)
339 339
 	{
340 340
 		goto unsupported_event;