Skip to content

Commit 1020ac2

Browse files
committed
fix another malloc size issue
1 parent 546e488 commit 1020ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tempodb/tempodb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static struct sockaddr_in * tempodb_addr(void) {
4949
struct sockaddr_in *remote;
5050
char *ip = tempodb_getip(DOMAIN);
5151

52-
remote = (struct sockaddr_in *)malloc(sizeof(struct sockaddr_in *));
52+
remote = (struct sockaddr_in *)malloc(sizeof(struct sockaddr_in));
5353
remote->sin_family = AF_INET;
5454
remote->sin_port = htons(80);
5555
remote->sin_addr.s_addr = inet_addr(ip);

0 commit comments

Comments
 (0)