From f10a98003962ce2f731081a4796871172aa6aaee Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 21 Jul 2014 17:30:07 +0200 Subject: [PATCH] fce: fix event id increment Signed-off-by: Ralph Boehme --- etc/afpd/fce_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/afpd/fce_api.c b/etc/afpd/fce_api.c index 8c7f4849..c2afc82f 100644 --- a/etc/afpd/fce_api.c +++ b/etc/afpd/fce_api.c @@ -395,7 +395,7 @@ static void send_fce_event(const AFPObj *obj, int event, const char *path, const } /* build our data packet */ - data_len = build_fce_packet(obj, iobuf, event, path, oldpath, getpid(), user, ++event_id); + data_len = build_fce_packet(obj, iobuf, event, path, oldpath, getpid(), user, event_id); sent_data = sendto(udp_entry->sock, iobuf, @@ -415,6 +415,8 @@ static void send_fce_event(const AFPObj *obj, int event, const char *path, const udp_entry->next_try_on_error = now + FCE_SOCKET_RETRY_DELAY_S; } } + + event_id++; } static int add_udp_socket(const char *target_ip, const char *target_port ) -- 2.39.2