Skip to contentSkip to conversation

fix missing call to closedir

PATCH In review Vladimir Botka 2 participants 2 messages Aug 25, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix missing call to closedir

Quoted 1 line

From 29e477a29519c4a232ba02b6878beeeaa6d57da6 Mon Sep 17 00:00:00 2001

From: Vladimir Botka <[email protected]>
Date: Tue, 25 Aug 2009 13:23:29 +0200
Subject: [PATCH] fix missing call to closedir

---
 compat/dun.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
compat/dun.c +3 -1
index c74e5ee..7140bac 100644
@@ -106,8 +106,10 @@ static int uses_rfcomm(char *path, char *dev)
 		int  len = readlink(de->d_name, link, sizeof(link));
 		if (len > 0) {
 			link[len] = 0;
-			if (strstr(link, dev))
+			if (strstr(link, dev)) {
+				closedir(dir);
 				return 1;
+			}
 		}
 	}
 
Signature · 7 lines
1.6.0.2


Cheers,
-- 
	-vlado
	Vladimir Botka
maintainer
#1 lore raw

Hi Vladimir,

Quoted 4 lines

From 29e477a29519c4a232ba02b6878beeeaa6d57da6 Mon Sep 17 00:00:00 2001
From: Vladimir Botka <[email protected]>
Date: Tue, 25 Aug 2009 13:23:29 +0200
Subject: [PATCH] fix missing call to closedir

please fix your .gitconfig so we have real email addresses as author and not some ones with machine names in it.

Regards

Marcel