2005-02-15 Paul Jakma <paul.jakma@sun.com>

	* ospf_packet.c: (ospf_recv_packet) Fix silly error wrt allocating
	  ibuf. Thanks Andrew.
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index c4e7f52..5836925 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -2093,11 +2093,10 @@
   ip_len = ip_len + (iph.ip_hl << 2);
 #endif
   
-  ibuf = stream_new (ip_len);
-  iov.iov_base = STREAM_DATA (ibuf);
-  iov.iov_len = ip_len;
   if ( (ibuf = stream_new (ip_len)) == NULL)
     return NULL;
+  iov.iov_base = STREAM_DATA (ibuf);
+  iov.iov_len = ip_len;
   
   ret = stream_recvmsg (ibuf, fd, &msgh, 0, ip_len);