Revision d2a7c0e9

View differences:

proto/bgp/packets.c
82 82
  int r_size = 0;
83 83
  int a_size = 0;
84 84

  
85
  BGP_TRACE(D_PACKETS, "Sending UPDATE");
86 85
  w = buf+2;
87 86
  if ((buck = p->withdraw_bucket) && !EMPTY_LIST(buck->prefixes))
88 87
    {
......
118 117
      put_u16(w, 0);
119 118
      w += 2;
120 119
    }
121
  return (wd_size || r_size) ? w : NULL;
120
  if (wd_size || r_size)
121
    {
122
      BGP_TRACE(D_PACKETS, "Sending UPDATE");
123
      return w;
124
    }
125
  else
126
    return NULL;
122 127
}
123 128

  
124 129
#else		/* IPv6 version */
......
136 141
  eattr *nh;
137 142
  neighbor *n;
138 143

  
139
  BGP_TRACE(D_PACKETS, "Sending UPDATE");
140 144
  put_u16(buf, 0);
141 145
  w = buf+4;
142 146

  
......
213 217
  size = w - (buf+4);
214 218
  put_u16(buf+2, size);
215 219
  lp_flush(bgp_linpool);
216
  return size ? w : NULL;
220
  if (size)
221
    {
222
      BGP_TRACE(D_PACKETS, "Sending UPDATE");
223
      return w;
224
    }
225
  else
226
    return NULL;
217 227
}
218 228

  
219 229
#endif

Also available in: Unified diff