Blame SOURCES/sudo-1.8.6p7-clangfixes.patch

523624
diff -up sudo-1.8.6p7/plugins/sudoers/sssd.c.clangfixes sudo-1.8.6p7/plugins/sudoers/sssd.c
523624
--- sudo-1.8.6p7/plugins/sudoers/sssd.c.clangfixes	2014-09-30 10:31:43.920885432 +0200
523624
+++ sudo-1.8.6p7/plugins/sudoers/sssd.c	2014-09-30 10:32:39.413228871 +0200
523624
@@ -313,9 +313,9 @@ static int sudo_sss_close(struct sudo_ns
523624
     if (nss && nss->handle) {
523624
 	handle = nss->handle;
523624
 	dlclose(handle->ssslib);
523624
+	efree(nss->handle);
523624
     }
523624
 
523624
-    efree(nss->handle);
523624
     debug_return_int(0);
523624
 }
523624
 
523624
@@ -755,12 +755,15 @@ sudo_sss_result_get(struct sudo_nss *nss
523624
 		*state |= _SUDO_SSS_STATE_HOSTMATCH;
523624
 	    }
523624
 	}
523624
+	sudo_debug_printf(SUDO_DEBUG_DEBUG,
523624
+	    "u_sss_result=(%p, %u) => f_sss_result=(%p, %u)", u_sss_result,
523624
+	    u_sss_result->num_rules, f_sss_result, f_sss_result->num_rules);
523624
+    } else {
523624
+	sudo_debug_printf(SUDO_DEBUG_DEBUG,
523624
+	    "u_sss_result=(%p, %u) => f_sss_result=NULL", u_sss_result,
523624
+	    u_sss_result->num_rules);
523624
     }
523624
 
523624
-    sudo_debug_printf(SUDO_DEBUG_DEBUG,
523624
-	"u_sss_result=(%p, %u) => f_sss_result=(%p, %u)", u_sss_result,
523624
-	u_sss_result->num_rules, f_sss_result, f_sss_result->num_rules);
523624
-
523624
     handle->fn_free_result(u_sss_result);
523624
 
523624
     debug_return_ptr(f_sss_result);
523624
diff -up sudo-1.8.6p7/plugins/sudoers/visudo.c.clangfixes sudo-1.8.6p7/plugins/sudoers/visudo.c
523624
--- sudo-1.8.6p7/plugins/sudoers/visudo.c.clangfixes	2014-09-30 10:34:08.689174020 +0200
523624
+++ sudo-1.8.6p7/plugins/sudoers/visudo.c	2014-09-30 11:00:15.215654285 +0200
523624
@@ -544,7 +544,7 @@ reparse_sudoers(char *editor, char *args
523624
 		    continue;
523624
 	    edit_sudoers(sp, editor, args, errorlineno);
523624
 	}
523624
-    } while (parse_error);
523624
+    } while (parse_error && sp != NULL);
523624
 
523624
     debug_return;
523624
 }