Browse code

- fixed wrong request method check, discovered by Jan Andres

Jan Janak authored on 04/02/2008 14:11:37
Showing 1 changed files
... ...
@@ -132,7 +132,7 @@ int get_to_uid(str* uid, struct sip_msg* msg)
132 132
 		*uid = val.s;
133 133
 		return 1;
134 134
 	} else {
135
-		if (msg->first_line.type == METHOD_REGISTER) {
135
+		if (msg->REQ_METHOD == METHOD_REGISTER) {
136 136
 			if ((msg->to==0) && 
137 137
 				(parse_headers(msg, HDR_TO_F, 0) < 0 || msg->to == 0)) {
138 138
 				DBG("get_to_uid: Error while parsing To URI: "