Browse code

- fixed a bug of calling aply_auth_nbody to a possible NULL body (reported by Adrian Georgescu)

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

Anca Vamanu authored on 14/05/2007 07:33:48
Showing 1 changed files
... ...
@@ -1188,7 +1188,7 @@ int notify(subs_t* subs, subs_t * watcher_subs,str* n_body,int force_null_body)
1188 1188
 				{
1189 1189
 					DBG("PRESENCE:notify: Could not get the notify_body\n");
1190 1190
 				}
1191
-				/* apply authorization rules if exists */
1191
+				else		/* apply authorization rules if exists */
1192 1192
 				if(subs->event->req_auth)
1193 1193
 				{
1194 1194
 					str* final_body= NULL;