Fix to Coverity defects 72714 75940 75941
This commit is contained in:
@ -398,7 +398,7 @@ routeQuery(FILTER *instance, void *session, GWBUF *queue)
|
||||
QLA_INSTANCE *my_instance = (QLA_INSTANCE *)instance;
|
||||
QLA_SESSION *my_session = (QLA_SESSION *)session;
|
||||
char *ptr;
|
||||
int length;
|
||||
int length = 0;
|
||||
struct tm t;
|
||||
struct timeval tv;
|
||||
|
||||
|
@ -415,8 +415,9 @@ GWBUF *clone = NULL;
|
||||
modutil_MySQL_Query(queue, &dummy, &length, &residual);
|
||||
clone = gwbuf_clone(queue);
|
||||
my_session->residual = residual;
|
||||
free(ptr);
|
||||
|
||||
}
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
/* Pass the query downstream */
|
||||
|
@ -172,7 +172,7 @@ HTTPD_session *client_data = NULL;
|
||||
j++;
|
||||
}
|
||||
|
||||
while (!ISspace(buf[j]) && (i < sizeof(url) - 1) && (j < sizeof(buf))) {
|
||||
while (!ISspace(buf[j]) && (i < sizeof(url) - 1) && (j < sizeof(buf) - 1)) {
|
||||
url[i] = buf[j];
|
||||
i++; j++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user