From c591a212e8957fc8af0a1ac0f5f4bbc73a0f67dc Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Mon, 19 Sep 2016 13:04:23 -0500
Subject: [PATCH] FS-9538 #resolve [segfault while reading local ringback file]

---
 src/mod/applications/mod_dptools/mod_dptools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c
index 669fa6583c..0545ac07c4 100644
--- a/src/mod/applications/mod_dptools/mod_dptools.c
+++ b/src/mod/applications/mod_dptools/mod_dptools.c
@@ -4880,7 +4880,7 @@ static switch_status_t file_string_file_seek(switch_file_handle_t *handle, unsig
 
 	if (samples == 0 && whence == SEEK_SET) {
 		context->index = -1;
-		return SWITCH_STATUS_SUCCESS;
+		return next_file(handle);
 	}
 	
 	if (!handle->seekable) {