gtp.c: fix an error log.

Fix: the code handles fd1u but prints fd1c.
This commit is contained in:
Neels Hofmeyr 2015-10-12 14:00:22 +02:00 committed by Holger Hans Peter Freyther
parent b18e811e24
commit e845cb9505
1 changed files with 2 additions and 2 deletions

View File

@ -795,8 +795,8 @@ int gtp_new(struct gsn_t **gsn, char *statedir, struct in_addr *listen,
if (bind((*gsn)->fd1u, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
(*gsn)->err_socket++;
LOGP_WITH_ADDR(DLGTP, LOGL_ERROR, addr,
"bind(fd1c=%d) failed: Error = %s\n",
(*gsn)->fd1c, strerror(errno));
"bind(fd1u=%d) failed: Error = %s\n",
(*gsn)->fd1u, strerror(errno));
return -1;
}