Skip to content

Commit

Permalink
Fix incorrect $SYS heap memory reporting when using ACLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Mar 12, 2016
1 parent abc2f3f commit fda0cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Broker:
again.
- Will topic isn't truncated by one byte when using a mount_point any more.
- Network errors are printed correctly on Windows.
- Fix incorrect $SYS heap memory reporting when using ACLs.

Client library:
- Fix the case where a message received just before the keepalive timer
Expand Down
4 changes: 2 additions & 2 deletions src/security_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ int mosquitto_acl_check_default(struct mosquitto_db *db, struct mosquitto *conte
ulen = 0;
len = tlen + acl_root->ccount*(clen-2);
}
local_acl = malloc(len+1);
local_acl = _mosquitto_malloc(len+1);
if(!local_acl) return 1; // FIXME
s = local_acl;
for(i=0; i<tlen; i++){
Expand Down Expand Up @@ -803,7 +803,7 @@ int _base64_decode(char *in, unsigned char **decoded, unsigned int *decoded_len)
BIO_free_all(b64);
return 1;
}
*decoded = calloc(strlen(in), 1);
*decoded = _mosquitto_calloc(strlen(in), 1);
*decoded_len = BIO_read(b64, *decoded, strlen(in));
BIO_free_all(b64);

Expand Down

0 comments on commit fda0cb3

Please sign in to comment.