Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] drbdsetup SEGV on command secondary --bogus_option
@ 2006-10-23 22:22 Montrose, Ernest
  2006-10-24 12:42 ` Philipp Reisner
  0 siblings, 1 reply; 2+ messages in thread
From: Montrose, Ernest @ 2006-10-23 22:22 UTC (permalink / raw)
  To: drbd-dev


[-- Attachment #1.1: Type: text/plain, Size: 161 bytes --]

Hi all,
A minor annoyance.  If you do 
# drbdsetup /dev/somedevice secondary -bogus_option 
one get a SEGV. I include a possible patch to fix this.
 
EM--

[-- Attachment #1.2: Type: text/html, Size: 4383 bytes --]

[-- Attachment #2: drbdsetup.c.opt_patch --]
[-- Type: application/octet-stream, Size: 375 bytes --]

Index: trunk/user/drbdsetup.c
===================================================================
--- trunk/user/drbdsetup.c	(revision 5638)
+++ trunk/user/drbdsetup.c	(working copy)
@@ -690,6 +690,7 @@
 
 struct drbd_option *find_opt_by_short_name(struct drbd_option *od, int c)
 {
+   if(!od) return NULL;
 	while(od->name) {
 		if(od->short_name == c) return od;
 		od++;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Drbd-dev] drbdsetup SEGV on command secondary --bogus_option
  2006-10-23 22:22 [Drbd-dev] drbdsetup SEGV on command secondary --bogus_option Montrose, Ernest
@ 2006-10-24 12:42 ` Philipp Reisner
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Reisner @ 2006-10-24 12:42 UTC (permalink / raw)
  To: drbd-dev

Am Dienstag, 24. Oktober 2006 00:22 schrieb Montrose, Ernest:
> Hi all,
> A minor annoyance.  If you do
> # drbdsetup /dev/somedevice secondary -bogus_option
> one get a SEGV. I include a possible patch to fix this.
>
> EM--

Thanks!

-Phil
-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-24 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23 22:22 [Drbd-dev] drbdsetup SEGV on command secondary --bogus_option Montrose, Ernest
2006-10-24 12:42 ` Philipp Reisner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox