[Asterisk-Dev] possible bug in chan_sip

Maurizio Marini maumar at datalogica.com
Thu Jan 13 07:52:43 MST 2005


in chan_sip.c line 1137:
       while(tmp) {
                if (strcasecmp(tmp->name, "type"))
                        continue;

                if (!strcasecmp(tmp->value, "user")) {
                        ast_destroy_realtime(var);
                        return NULL;
                }

                tmp = tmp->next;
        }

should be (conceptualy):
       while(tmp) {
                if (strcasecmp(tmp->name, "type")){
			tmp = tmp->next;
                        continue;
		}

                if (!strcasecmp(tmp->value, "user")) {
                        ast_destroy_realtime(var);
                        return NULL;
                }

                tmp = tmp->next;
        }


IMHO

-- 
Maurizio Marini



More information about the asterisk-dev mailing list