From 2f765f02af074a8c0147bdfac0772a4635c99e3f Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 17 Feb 2021 18:51:21 +0100 Subject: logging: gsmtap: Fix fill PID field not stored in network byte order Recent commit filling this field forgot to convert it to network byte order. Related: OS#5027 Fixes: bb149ecda21a4f9b102245ffc6a2870592d32c0b Change-Id: I50857f35cb28138fa6f28100afeaa00f492f303a --- src/logging_gsmtap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging_gsmtap.c b/src/logging_gsmtap.c index 8947c5db..05246023 100644 --- a/src/logging_gsmtap.c +++ b/src/logging_gsmtap.c @@ -157,7 +157,7 @@ struct log_target *log_target_create_gsmtap(const char *host, uint16_t port, target->raw_output = _gsmtap_raw_output; if (!logging_gsmtap_pid) - logging_gsmtap_pid = (uint32_t)getpid(); + osmo_store32be((uint32_t)getpid(), &logging_gsmtap_pid); return target; } -- cgit v1.2.3