|
|
| version 1.10, 2004/03/19 18:22:00 | version 1.11, 2004/04/22 04:22:02 |
|---|---|
| Line 2494 ipfw_ctl(struct sockopt *sopt) | Line 2494 ipfw_ctl(struct sockopt *sopt) |
| * how much room is needed, do not bother filling up the | * how much room is needed, do not bother filling up the |
| * buffer, just jump to the sooptcopyout. | * buffer, just jump to the sooptcopyout. |
| */ | */ |
| buf = malloc(size, M_TEMP, M_NOWAIT); | buf = malloc(size, M_TEMP, M_WAITOK); |
| if (buf == 0) { | |
| splx(s); | |
| error = ENOBUFS; | |
| break; | |
| } | |
| bp = buf; | bp = buf; |
| for (rule = layer3_chain; rule ; rule = rule->next) { | for (rule = layer3_chain; rule ; rule = rule->next) { |