Browse Source

Made rtcGet*Address() return RTC_ERR_FAILURE if unavailable

Paul-Louis Ageneau 4 years ago
parent
commit
37d47d28a8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/capi.cpp

+ 4 - 0
src/capi.cpp

@@ -569,6 +569,8 @@ int rtcGetLocalAddress(int pc, char *buffer, int size) {
 			buffer[size] = '\0';
 			buffer[size] = '\0';
 			return size + 1;
 			return size + 1;
 		}
 		}
+
+		return RTC_ERR_FAILURE;
 	});
 	});
 }
 }
 
 
@@ -589,6 +591,8 @@ int rtcGetRemoteAddress(int pc, char *buffer, int size) {
 			buffer[size] = '\0';
 			buffer[size] = '\0';
 			return int(size + 1);
 			return int(size + 1);
 		}
 		}
+
+		return RTC_ERR_FAILURE;
 	});
 	});
 }
 }