]> arthur.barton.de Git - netatalk.git/commitdiff
fce: fix event id increment
authorRalph Boehme <rb@sernet.de>
Mon, 21 Jul 2014 15:30:07 +0000 (17:30 +0200)
committerRalph Boehme <rb@sernet.de>
Mon, 21 Jul 2014 15:30:07 +0000 (17:30 +0200)
Signed-off-by: Ralph Boehme <rb@sernet.de>
etc/afpd/fce_api.c

index 8c7f48492d6b5af16618f7cb47a61e099ae4eb95..c2afc82f0dc2f5512b3b8d8604370e6630a4648c 100644 (file)
@@ -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 )