Fix parsing of txt record 41/257841/1 accepted/tizen/unified/20210505.141431 submit/tizen/20210504.072230
authorCheoleun Moon <chleun.moon@samsung.com>
Tue, 4 May 2021 07:04:23 +0000 (16:04 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Tue, 4 May 2021 07:04:32 +0000 (16:04 +0900)
Change-Id: If2ac2fb5a87a9c42910d189621b204ab65fc28f5
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
plugins/dns-sd/dns-sd-plugin.cpp

index 94ed386..f0c9e66 100755 (executable)
@@ -105,8 +105,7 @@ static void __discovered_service_set_txt_record(dns_sd_discovered_service_s *ser
                }
 
                char *buf = &key_buf[0];
-               while (ptr < end) {
-                       ++ptr;
+               while (++ptr < end) {
                        if (*ptr == '=') {
                                *buf = 0;
                                buf = &value_buf[0];