s3:tldap: Fix parsing LDAPv2 escaped strings
authorAndreas Schneider <asn@samba.org>
Wed, 26 Jul 2017 15:48:34 +0000 (17:48 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 19 Feb 2018 18:17:12 +0000 (19:17 +0100)
Yes, this is outdated, but the missing 'break' produces a compiler
warning.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Simo Sorce <idra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/tldap.c

index 40064fdeeed3d6ce9e3c56f09a2564f600685197..33a852446b9a253526c70afb82d9ed41086a2de7 100644 (file)
@@ -1295,6 +1295,8 @@ static bool tldap_unescape_inplace(char *value, size_t *val_len)
                        case '\\':
                                value[p] = value[i];
                                p++;
+
+                               break;
                        default:
                                /* invalid */
                                return false;