From 79bada897b338e0e3fc92b5a15d25147d35b80df Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sun, 8 Dec 2019 16:31:15 +0900 Subject: [PATCH] Minor bug fixed --- src/mme/mme-context.c | 2 +- src/mme/mme-gtp-path.c | 2 +- src/pgw/pgw-gtp-path.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mme/mme-context.c b/src/mme/mme-context.c index 719484481..5f6899ba1 100644 --- a/src/mme/mme-context.c +++ b/src/mme/mme-context.c @@ -1519,7 +1519,7 @@ int mme_context_parse_config() } while (ogs_yaml_iter_type(>pc_array) == YAML_SEQUENCE_NODE); - } else if(!strcmp(mme_key, "selection_mode")) { + } else if (!strcmp(mme_key, "selection_mode")) { const char *selection_mode = ogs_yaml_iter_value(&sgw_iter); diff --git a/src/mme/mme-gtp-path.c b/src/mme/mme-gtp-path.c index 7f5ae443f..0ead381c8 100644 --- a/src/mme/mme-gtp-path.c +++ b/src/mme/mme-gtp-path.c @@ -55,7 +55,7 @@ static void _gtpv2_c_recv_cb(short when, ogs_socket_t fd, void *data) sgw = mme_sgw_find_by_addr(&from); if (!sgw) { ogs_error("Unknown SGW : %s", OGS_ADDR(&from, buf)); - ogs_pkbuf_free(e->pkbuf); + ogs_pkbuf_free(pkbuf); return; } ogs_assert(sgw->gnode); diff --git a/src/pgw/pgw-gtp-path.h b/src/pgw/pgw-gtp-path.h index 481752e33..c9764e8e8 100644 --- a/src/pgw/pgw-gtp-path.h +++ b/src/pgw/pgw-gtp-path.h @@ -17,8 +17,8 @@ * along with this program. If not, see . */ -#ifndef PGW_PATH_H -#define PGW_PATH_H +#ifndef PGW_GTP_PATH_H +#define PGW_GTP_PATH_H #include "ogs-tun.h" #include "ogs-gtp.h" @@ -34,4 +34,4 @@ void pgw_gtp_close(void); } #endif -#endif /* PGW_PATH_H */ +#endif /* PGW_GTP_PATH_H */