<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>t/issue_67.t</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4250,6 +4250,8 @@ int main (int argc, char **argv) {
     /* udp socket */
     static int *u_socket = NULL;
     bool protocol_specified = false;
+    bool tcp_specified = false;
+    bool udp_specified = false;
 
     /* handle SIGINT */
     signal(SIGINT, sig_handler);
@@ -4297,9 +4299,11 @@ int main (int argc, char **argv) {
 
         case 'U':
             settings.udpport = atoi(optarg);
+            udp_specified = true;
             break;
         case 'p':
             settings.port = atoi(optarg);
+            tcp_specified = true;
             break;
         case 's':
             settings.socketpath = optarg;
@@ -4465,6 +4469,12 @@ int main (int argc, char **argv) {
         }
     }
 
+    if (tcp_specified &amp;&amp; !udp_specified) {
+        settings.udpport = settings.port;
+    } else if (udp_specified &amp;&amp; !tcp_specified) {
+        settings.port = settings.udpport;
+    }
+
     if (maxcore != 0) {
         struct rlimit rlim_new;
         /*</diff>
      <filename>memcached.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b8ff91831829221d57944eafca28cf6420485061</id>
    </parent>
  </parents>
  <author>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </author>
  <url>http://github.com/trondn/memcached/commit/6dc28e905d7b9f7809f6e8c0e372588740c28e47</url>
  <id>6dc28e905d7b9f7809f6e8c0e372588740c28e47</id>
  <committed-date>2009-10-30T16:10:42-07:00</committed-date>
  <authored-date>2009-10-30T15:25:07-07:00</authored-date>
  <message>TCP and UDP ports should follow each other. bug67</message>
  <tree>27557dad7199239da27da13feb50956690a95748</tree>
  <committer>
    <name>dormando</name>
    <email>dormando@rydia.net</email>
  </committer>
</commit>
