Explorar o código

db_oracle: use PARAM_TYPE_MASK when checking param type
(cherry picked from commit d1e89c65a9412d2a0560c5699a34dd01e231a2d9)

Daniel-Constantin Mierla %!s(int64=15) %!d(string=hai) anos
pai
achega
243193a6f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules_k/db_oracle/asynch.c

+ 1 - 1
modules_k/db_oracle/asynch.c

@@ -66,7 +66,7 @@ static int set_tv(unsigned type, const char* val, struct timeval* tv)
 	unsigned long s, ms;
 	double dv;
 
-	if (type != STR_PARAM) {
+	if (PARAM_TYPE_MASK(type) != STR_PARAM) {
 		LM_ERR("type of parameter is no STR\n");
 		return -1;
 	}