myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [3025] Fixed a segfault when the server checks if a HT


From: Giuseppe Scrivano
Subject: [myserver-commit] [3025] Fixed a segfault when the server checks if a HTTP command is allowed in the current context .
Date: Mon, 23 Mar 2009 17:43:54 +0000

Revision: 3025
          http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=3025
Author:   gscrivano
Date:     2009-03-23 17:43:53 +0000 (Mon, 23 Mar 2009)
Log Message:
-----------
Fixed a segfault when the server checks if a HTTP command is allowed in the 
current context.

Modified Paths:
--------------
    trunk/myserver/src/protocol/http/http.cpp

Modified: trunk/myserver/src/protocol/http/http.cpp
===================================================================
--- trunk/myserver/src/protocol/http/http.cpp   2009-03-23 17:38:42 UTC (rev 
3024)
+++ trunk/myserver/src/protocol/http/http.cpp   2009-03-23 17:43:53 UTC (rev 
3025)
@@ -214,7 +214,7 @@
 bool Http::allowMethod(const char *method)
 {
   char name[64];
-  sprintf ("http.%s.allow", method);
+  sprintf (name, "http.%s.allow", method);
   const char *allow = td->securityToken.getHashedData (name, 
                                                        MYSERVER_VHOST_CONF |
                                                        MYSERVER_SERVER_CONF, 
"YES");





reply via email to

[Prev in Thread] Current Thread [Next in Thread]