hostapd: add missing "return 0" in write_timestamp_file.
Change-Id: Ia63aa353e1a7cbd3a2738bf325ccb87caebcc737
diff --git a/src/ap/steering.c b/src/ap/steering.c
index 3f933cf..75978c1 100644
--- a/src/ap/steering.c
+++ b/src/ap/steering.c
@@ -53,12 +53,12 @@
/* Create a temporary filename to prevent multiple interfaces on the same band
* from touching each others' writes.
- * Code review: Still necessary?
*/
if (os_snprintf(tmp_filename, sizeof(tmp_filename), "%s%s", filename,
os_strrchr(hapd->iface->config_fname, '.')) < 0) {
wpa_printf(MSG_ERROR, "os_snprintf couldn't format temp filename: %s",
strerror(errno));
+ return 0;
}
if ((f = fopen(tmp_filename, "w")) == NULL) {