normalize not set IP_CC in '01' case without '+' 45/49945/1
authorGukhwan Cho <gh78.cho@samsung.com>
Mon, 21 Sep 2015 14:27:18 +0000 (23:27 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Thu, 22 Oct 2015 02:30:23 +0000 (11:30 +0900)
Change-Id: Iea9806c22f1934bffa3f1cc930f535edb71d0a39
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
server/ctsvc_number_utils.c

index 8621b76..a5a77cb 100644 (file)
@@ -658,7 +658,7 @@ static int __ctsvc_number_has_ip_and_cc(const char*number, int len, int *index)
                                                        start_index++;
                                                        if (len <= start_index) {
                                                                *index = start_index-1;   /* '+0 1' */
-                                                               return (have_plus?CTSVC_PLUS_IP_CC:CTSVC_IP_CC);
+                                                               return (have_plus?CTSVC_PLUS_IP_CC:CTSVC_NONE);
                                                        }
 
                                                        switch(number[start_index]) {
@@ -684,7 +684,7 @@ static int __ctsvc_number_has_ip_and_cc(const char*number, int len, int *index)
                                                                break;
                                                        default:
                                                                *index = start_index-1;   /* '+0 1' */
-                                                               return (have_plus?CTSVC_PLUS_IP_CC:CTSVC_IP_CC);
+                                                               return (have_plus?CTSVC_PLUS_IP_CC:CTSVC_NONE);
                                                        }
                                                }
                                                break;