$NetBSD: patch-ae,v 1.1 2007/03/17 13:47:08 rillig Exp $

The ?: operator returns an rvalue, not an lvalue.

--- src/net.c.orig	2002-01-01 18:55:23.000000000 +0100
+++ src/net.c	2007-03-17 14:45:03.000000000 +0100
@@ -459,7 +459,7 @@ static int _net_buffer(struct sockinfo *
     return 0;
   }
   
-  l = &(buff == SB_IN ? s->in_buff_last : s->out_buff_last);
+  l = (buff == SB_IN ? &(s->in_buff_last) : &(s->out_buff_last));
 
   /* Check whether we can just add to the existing buffer */
   if ((mode == SM_RAW) && *l && ((*l)->mode == mode)) {
