diff options
author | Simo Sorce <idra@samba.org> | 2010-03-09 16:40:55 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-03-09 16:42:05 -0500 |
commit | f7f67e9e1f678e0256deeca94939bf29e6a04fa4 (patch) | |
tree | 74db1af22b42c74e33a743adcd5292f7cc84162d | |
parent | 8fa81e99093bccf40c4ddea162896ccc020da9db (diff) | |
download | samba-f7f67e9e1f678e0256deeca94939bf29e6a04fa4.tar.gz samba-f7f67e9e1f678e0256deeca94939bf29e6a04fa4.tar.bz2 samba-f7f67e9e1f678e0256deeca94939bf29e6a04fa4.zip |
Fix typo and convert spaces to tabs
-rw-r--r-- | source4/lib/ldb/common/ldb_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c index 6d43000dbc..a6845939a0 100644 --- a/source4/lib/ldb/common/ldb_parse.c +++ b/source4/lib/ldb/common/ldb_parse.c @@ -54,8 +54,8 @@ static int ldb_parse_hex2char(const char *x) else if (h1 >= '0') c = h1 - (int)'0'; c = c << 4; if (h2 >= 'a') c += h2 - (int)'a' + 10; - else if (h1 >= 'A') c += h2 - (int)'A' + 10; - else if (h1 >= '0') c += h2 - (int)'0'; + else if (h2 >= 'A') c += h2 - (int)'A' + 10; + else if (h2 >= '0') c += h2 - (int)'0'; return c; } @@ -93,8 +93,8 @@ struct ldb_val ldb_binary_decode(void *mem_ctx, const char *str) if (str[i] == '\\') { int c; - c = ldb_parse_hex2char(&str[i+1]); - if (c == -1) { + c = ldb_parse_hex2char(&str[i+1]); + if (c == -1) { talloc_free(ret.data); memset(&ret, 0, sizeof(ret)); return ret; |