summaryrefslogtreecommitdiff
path: root/accel-pptpd/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pptpd/log.c')
-rw-r--r--accel-pptpd/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/log.c b/accel-pptpd/log.c
index d92ab12..582c250 100644
--- a/accel-pptpd/log.c
+++ b/accel-pptpd/log.c
@@ -260,7 +260,7 @@ static struct log_msg_t *clone_msg(struct _log_msg_t *msg)
m->timestamp = msg->timestamp;
m->level = msg->level;
- msg->refs++;
+ __sync_add_and_fetch(&msg->refs, 1);
//printf("clone msg %p\n", m);
return m;