Fix bug in persistent connections; add code to check for DCB session pointer in poll loop before invoking processing.

This commit is contained in:
counterpoint
2015-08-25 12:19:02 +01:00
parent 8425deab18
commit e7c74c39cf
2 changed files with 49 additions and 8 deletions

View File

@ -1852,7 +1852,7 @@ dcb_close(DCB *dcb)
{
char *user;
user = session_getUser(dcb->session);
dcb->user = strdup(user);
if (NULL != user) dcb->user = strdup(user);
/*<
* Add closing dcb to the top of the list, setting zombie marker
*/