aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2015-10-11 00:07:33 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-10-12 13:56:32 +0000
commit23beb9700c3fc8eea9f3540813a7b0edeaee98ae (patch)
tree01e9d90e3348c0f277cf7174e5d4cf219aa2b72f
parent14498f03a3529e82231c372332939be40599f755 (diff)
extcap: fix a bug in create_tempfile() return check (CID 1323930)
Change-Id: Ifacdfee5c12e676969cfe536dfeda2be93426a46 Reviewed-on: https://code.wireshark.org/review/10929 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--extcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap.c b/extcap.c
index 92c3323461..013389c0fc 100644
--- a/extcap.c
+++ b/extcap.c
@@ -779,7 +779,7 @@ gboolean extcap_create_pipe(char ** fifo)
gchar *temp_name = NULL;
int fd = 0;
- if ( ( fd = create_tempfile ( &temp_name, EXTCAP_PIPE_PREFIX ) ) == 0 )
+ if ((fd = create_tempfile(&temp_name, EXTCAP_PIPE_PREFIX)) < 0 )
return FALSE;
ws_close(fd);