Fix core dump if no connection attributes available.
Reported in https://github.com/mcafee/mysql-audit/issues/161.pull/179/head
parent
ba21262b81
commit
570bfb0de6
|
@ -392,7 +392,13 @@ public:
|
||||||
//no offsets - return null
|
//no offsets - return null
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return *(const char **) (((unsigned char *) pfs) + Audit_formatter::thd_offsets.pfs_connect_attrs);
|
const char **pfs_pointer = (const char **) (((unsigned char *) pfs) + Audit_formatter::thd_offsets.pfs_connect_attrs);
|
||||||
|
if (pfs_pointer == NULL)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return *pfs_pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint pfs_connect_attrs_length(void * pfs)
|
static inline uint pfs_connect_attrs_length(void * pfs)
|
||||||
|
|
Loading…
Reference in New Issue