Merge branch 'release-1.2' into MXS-230
This commit is contained in:
@ -210,7 +210,7 @@ HASHTABLE *oldresources;
|
|||||||
oldusers = service->users;
|
oldusers = service->users;
|
||||||
|
|
||||||
/* digest compare */
|
/* digest compare */
|
||||||
if (memcmp(oldusers->cksum, newusers->cksum, SHA_DIGEST_LENGTH) == 0) {
|
if (oldusers != NULL && memcmp(oldusers->cksum, newusers->cksum, SHA_DIGEST_LENGTH) == 0) {
|
||||||
/* same data, nothing to do */
|
/* same data, nothing to do */
|
||||||
LOGIF(LD, (skygw_log_write_flush(
|
LOGIF(LD, (skygw_log_write_flush(
|
||||||
LOGFILE_DEBUG,
|
LOGFILE_DEBUG,
|
||||||
@ -234,7 +234,7 @@ HASHTABLE *oldresources;
|
|||||||
|
|
||||||
spinlock_release(&service->spin);
|
spinlock_release(&service->spin);
|
||||||
|
|
||||||
if (i) {
|
if (i && oldusers) {
|
||||||
/* free the old table */
|
/* free the old table */
|
||||||
users_free(oldusers);
|
users_free(oldusers);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user