Module: kamailio
Branch: master
Commit: 564f5c612999d762b24bcaf2047bb063d1d5ecbf
URL:
https://github.com/kamailio/kamailio/commit/564f5c612999d762b24bcaf2047bb06…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-09-18T09:09:28+02:00
ldap: removed unused variable
---
Modified: modules/ldap/ldap_escape.c
---
Diff:
https://github.com/kamailio/kamailio/commit/564f5c612999d762b24bcaf2047bb06…
Patch:
https://github.com/kamailio/kamailio/commit/564f5c612999d762b24bcaf2047bb06…
---
diff --git a/modules/ldap/ldap_escape.c b/modules/ldap/ldap_escape.c
index e6507f8..9fb4ca2 100644
--- a/modules/ldap/ldap_escape.c
+++ b/modules/ldap/ldap_escape.c
@@ -29,8 +29,6 @@
#include <ctype.h>
#include "ldap_escape.h"
-static const char hex[] = "0123456789ABCDEF";
-
/*
* escape string following RFC 4515 (LDAP filter syntax) escaping rules:
*
@@ -48,8 +46,8 @@ static const char hex[] = "0123456789ABCDEF";
int ldap_rfc4515_escape(str *sin, str *sout, int url_encode)
{
char *src, *dst;
-
- if (sin == NULL || sout == NULL || sin->s == NULL || sout->s == NULL
+
+ if (sin == NULL || sout == NULL || sin->s == NULL || sout->s == NULL
|| sin->len <= 0 || sout->len < 3*sin->len+1)
{
return -1;