catch by ref

This commit is contained in:
Erik Frojdh
2019-02-20 10:29:15 +01:00
parent d876cb6da6
commit 29d4eb8b41
2 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ int slsReceiverTCPIPInterface::set_port() {
try {
mySocket = new MySocketTCP(p_number);
strcpy(mySock->lastClientIP,oldLastClientIP);
} catch(SamePortSocketException e) {
} catch(SamePortSocketException &e) {
ret = FAIL;
sprintf(mess, "Could not bind port %d. It is already set\n", p_number);
FILE_LOG(logERROR) << mess;