Browse Source

= oal_ldap_escape()

master
Alex 'AdUser' Z 9 years ago
parent
commit
012d89c109
  1. 4
      src/ldapauth.c

4
src/ldapauth.c

@ -14,11 +14,11 @@
* @brief escape chars, having special meaning in ldap search filter * @brief escape chars, having special meaning in ldap search filter
* @returns >= 0 if escaped successfully, -1 on error * @returns >= 0 if escaped successfully, -1 on error
*/ */
size_t ssize_t
oal_ldap_escape(char *dst, size_t size, const char *src) oal_ldap_escape(char *dst, size_t size, const char *src)
{ {
char c = '\0'; char c = '\0';
size_t pos = 0; ssize_t pos = 0;
assert(dst != NULL); assert(dst != NULL);
assert(src != NULL); assert(src != NULL);

Loading…
Cancel
Save