subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1600563 - /subversion/trunk/subversion/libsvn_subr/gpg_agent.c
Date Thu, 05 Jun 2014 06:06:14 GMT
Author: rhuijben
Date: Thu Jun  5 06:06:13 2014
New Revision: 1600563

URL: http://svn.apache.org/r1600563
Log:
* subversion/libsvn_subr/gpg_agent.c
  (find_running_gpg_agent): Avoid segfault if no homedir is found.

Modified:
    subversion/trunk/subversion/libsvn_subr/gpg_agent.c

Modified: subversion/trunk/subversion/libsvn_subr/gpg_agent.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/gpg_agent.c?rev=1600563&r1=1600562&r2=1600563&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/gpg_agent.c (original)
+++ subversion/trunk/subversion/libsvn_subr/gpg_agent.c Thu Jun  5 06:06:13 2014
@@ -208,6 +208,10 @@ find_running_gpg_agent(int *new_sd, apr_
   else
     {
       const char *homedir = svn_user_get_homedir(pool);
+
+      if (!homedir)
+        return SVN_NO_ERROR;
+
       socket_name = svn_dirent_join_many(pool, homedir, ".gnupg",
                                          "S.gpg-agent", SVN_VA_NULL);
     }



Mime
View raw message