Parcourir la source

- bug fixed - all calbacks return as parameter a pointer to the registered
param, instead of the param itself (to allow you to modify the param).
looks like fifo_callback wasn't updated (probably my fault)

Bogdan-Andrei Iancu il y a 21 ans
Parent
commit
b41a7f4c9c
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      modules/tm/uac_fifo.c

+ 3 - 3
modules/tm/uac_fifo.c

@@ -541,12 +541,12 @@ static void fifo_callback( struct cell *t, int type, struct tmcb_params *ps )
 	DBG("!!!!! ref_counter: %d\n", t->ref_count);
 
 	DBG("DEBUG: fifo UAC completed with status %d\n", ps->code);
-	if (!ps->param) {
+	if (!*ps->param) {
 		LOG(L_INFO, "INFO: fifo UAC completed with status %d\n", ps->code);
 		return;
 	}
 
-	filename=(char *)(ps->param);
+	filename=(char *)(*ps->param);
 	if (ps->rpl==FAKED_REPLY) {
 		get_reply_status( &text, ps->rpl, ps->code);
 		if (text.s==0) {
@@ -570,7 +570,7 @@ static void fifo_callback( struct cell *t, int type, struct tmcb_params *ps )
 	}
 	DBG("DEBUG: fifo_callback sucesssfuly completed\n");
 done:
-	shm_free(ps->param);
+	shm_free(filename);
 }